I am trying to switch from Eclipse to IDEA and have problem with "Create method" function. From time, to time after using this feature a new method is created in incorrect place, e.g. inside another method or outside the class body. Usually it works correctly when the IDEA is started. When I am working with it some time, the problem is more and more frequent. Below is example of the result - a new method (2) is put inside the other (1).
I have been looking for solution in the internet but couldn't find any. Can someone give me some tip how to solve it?