class X { void test(int i) { if(i instanceof short s){} } }