HighlightUsagesHandlerBase (@NotNull Editor editor, @NotNull PsiFile file, @NotNull PsiElement target) { if (target instanceof PsiKeyword) { PsiElement parent = target.getParent(); if (PsiKeyword.TRY.equals(target.getText()) && parent instanceof PsiTryStatement) { return createHighlightTryHandler(editor, file, target, parent); } if (PsiKeyword.CATCH.equals(target.getText()) && parent instanceof PsiCatchSection) { return createHighlightCatchHandler(editor, file, target, parent); } if (PsiKeyword.THROWS.equals(target.getText())) { return createThrowsHandler(editor, file, target); } } if (target instanceof PsiIdentifier) { PsiElement parent = target.getParent(); if (parent instanceof PsiJavaCodeReferenceElement) { return createHighlightExceptionUsagesFromThrowsHandler(editor, file, target, (PsiJavaCodeReferenceElement)parent); } } return null; }