public class Foo {
    public static void main(String[] args) {
        public void foo(int a) {
            if (a == 0) {
            }
            <caret>
            else if (a == 1) {
            }
          }

    }
}