boolean (@NotNull final Class visitorClass, @NotNull final PsiFile file) { //if we're in console if (PydevConsoleRunnerUtil.isInPydevConsole(file)) { //inspections if (visitorClass == PyUnusedLocalInspection.class || visitorClass == PyUnboundLocalVariableInspection.class || visitorClass == PyStatementEffectInspection.class || visitorClass == PySingleQuotedDocstringInspection.class || visitorClass == PyIncorrectDocstringInspection.class || visitorClass == PyMissingOrEmptyDocstringInspection.class || visitorClass == PyMandatoryEncodingInspection.class || visitorClass == PyPep8Inspection.class || visitorClass == PyCompatibilityInspection.class) { return false; } //annotators if (visitorClass == DocStringAnnotator.class) { return false; } } return true; }