String (Path javaFile, String fileText, JavaCodeInsightTestFixture javaFixture) { javaFixture.configureByText(javaFile.getFileName().toString(), fileText); try { javaFixture.testHighlighting(true, false, false); } catch (ComparisonFailure e) { // Seems that expected and actual are switched return e.getActual(); } return fileText; }