void () { configureByFiles(getName(), getName() + "/Foo.java", getName() + "/A.java", getName() + "/B.java"); Arrays.stream(findClass("Foo").findMethodsByName("bar", false)).forEach((m) -> assertSize(2, searchReferences(m))); myCompilerTester.rebuild(); Arrays.stream(findClass("Foo").findMethodsByName("bar", false)).forEach((m) -> assertSize(2, searchReferences(m))); }