void () { boolean oldSettings = getJavaSettings().ENABLE_JAVADOC_FORMATTING; try { getJavaSettings().ENABLE_JAVADOC_FORMATTING = false; enableInspections(); Function<PsiFile, Generator<? extends MadTestingAction>> fileActions = file -> Generator.sampledFrom(new InvokeIntention(file, new JavaCommentingStrategy()), new InsertLineComment(file, "//simple end comment\n")); PropertyChecker .checkScenarios(actionsOnJavaFiles(fileActions)); } finally { getJavaSettings().ENABLE_JAVADOC_FORMATTING = oldSettings; } }