When you paste a text block into your code,
IntelliJ IDEA
helps you by autoindenting it to fit the new location.