void () { myFixture.addFileToProject("pck\\A.java", """ package pck; public class A { static void bar(Object a) { System.out.println("A"); } } class B { static void bar(Object a) { System.out.println("B"); } } """); doTest(); }