void () { //noinspection StaticNonFinalField myFixture.addClass("package foo; public class Foo {" + " public static String foo;" + "}"); myFixture.addClass("package foo; public class Bar {" + " public static void foo(String s) {}" + "}"); myFixture.configureByFile(getTestName(false) + ".java"); myFixture.checkHighlighting(false, false, false); }