void () { // need to set jdk version here because it is not set correctly in the mock jdk which causes problems in // com.intellij.codeInspection.JavaSuppressionUtil#canHave15Suppressions() IdeaTestUtil.setTestVersion(JavaSdkVersion.JDK_1_9, myFixture.getModule(), getTestRootDisposable()); final LocalInspectionTool inspection = new JavaDocReferenceInspection(); myFixture.enableInspections(inspection); myFixture.configureByFile("module-info.java"); myFixture.testHighlighting(); myFixture.launchAction(myFixture.findSingleIntention("Suppress for module declaration")); myFixture.checkResultByFile("module-info.after.java"); }