void (@NotNull PyDocStringOwner node) { final PyStringLiteralExpression docStringExpression = node.getDocStringExpression(); if (docStringExpression == null) { for (PyInspectionExtension extension : PyInspectionExtension.EP_NAME.getExtensionList()) { if (extension.ignoreMissingDocstring(node)) { return; } } PsiElement marker = null; if (node instanceof PyClass) { final ASTNode n = ((PyClass)node).getNameNode(); if (n != null) marker = n.getPsi(); } else if (node instanceof PyFunction) { final ASTNode n = ((PyFunction)node).getNameNode(); if (n != null) marker = n.getPsi(); } else if (node instanceof PyFile) { final TextRange tr = new TextRange(0, 0); final ProblemsHolder holder = getHolder(); if (holder != null) { holder.registerProblem(node, tr, PyPsiBundle.message("INSP.no.docstring")); } return; } if (marker == null) marker = node; if (node instanceof PyFunction pyFunction && !superFunctionHasDoc(pyFunction, myTypeEvalContext)) { registerProblem(marker, PyPsiBundle.message("INSP.no.docstring"), new DocstringQuickFix(null, null)); } else if (node instanceof PyClass pyClass && !superClassHasDoc(pyClass, myTypeEvalContext)) { if (pyClass.findInitOrNew(false, myTypeEvalContext) != null) { registerProblem(marker, PyPsiBundle.message("INSP.no.docstring"), new DocstringQuickFix(null, null)); } else { registerProblem(marker, PyPsiBundle.message("INSP.no.docstring")); } } } else if (StringUtil.isEmptyOrSpaces(docStringExpression.getStringValue())) { registerProblem(docStringExpression, PyPsiBundle.message("INSP.empty.docstring")); } }