public class Test {

    int j;

    public void method1() {
        int i = 1;
    }

    <caret>public void method2() {
        int i = 1;
    }

    public void method3() {
        int i = 1;
    }
}