boolean (@NotNull Project project, Editor editor, PsiFile file) { if (file instanceof PyFile && LanguageLevel.forElement(file).isAtLeast(LanguageLevel.PYTHON36)) { final PsiComment comment = findCommentUnderCaret(editor, file); return comment != null && isSuitableTypeComment(comment); } return false; }