HighlightUsagesHandlerBase<PsiMember> (@NotNull Editor editor, @NotNull PsiFile file, @NotNull PsiElement target) { if (!(target instanceof PsiKeyword) || !PsiKeyword.IMPORT.equals(target.getText())) { return null; } final PsiElement parent = target.getParent(); if (!(parent instanceof PsiImportStatementBase)) { return null; } final PsiElement grand = parent.getParent(); if (!(grand instanceof PsiImportList)) { return null; } return new HighlightImportedElementsHandler(editor, file, target, (PsiImportStatementBase) parent); }