void () { PsiClass myInterface = myFixture.findClass("abc.MyInterface"); PsiMethod[] allMethods = myInterface.getAllMethods(); assertTrue(ContainerUtil.exists(allMethods, m -> m.getName().contains("staticMethod"))); myFixture.configureByText("TestCompletion.java", """ public class TestCompletion { public static void main(String[] args) { abc.MyInterface.<caret> } }"""); myFixture.completeBasic(); assertContainsItems("staticMethod"); }