void (@NotNull PsiElement element) { // Highlight None, True and False as keywords once again inside annotations after PyHighlighter // to keep their original color if (PyTokenTypes.EXPRESSION_KEYWORDS.contains(element.getNode().getElementType()) && PsiTreeUtil.getParentOfType(element, PyAnnotation.class) != null) { addHighlightingAnnotation(element, PyHighlighter.PY_KEYWORD); } }