void () { doTestCompletion(new String[] {"Foo.java"}, "String s = ", new String[] {"someMethod2(1)", "someMethod1(0)", "someMethod3(0)", "m(0)", "mm(1)"}, m -> { PsiClass aClass = m.getContainingClass(); return aClass != null && "Foo".equals(aClass.getName()); }); }