class Foo { void foo(int i) { switch (i) { case Constants.BAR0: return; case B<caret>: } } } interface Constants { int BAR0 = 0; int BAR1 = 1; }