HighlightUsagesHandlerBase (@NotNull Editor editor, @NotNull PsiFile file, @NotNull PsiElement target) { if (target instanceof PsiKeyword && (PsiKeyword.EXTENDS.equals(target.getText()) || PsiKeyword.IMPLEMENTS.equals(target.getText()))) { PsiElement parent = target.getParent(); if (!(parent instanceof PsiReferenceList)) return null; PsiElement grand = parent.getParent(); if (!(grand instanceof PsiClass)) return null; return new HighlightOverridingMethodsHandler(editor, file, target, (PsiClass) grand); } return null; }