boolean (@NotNull PsiFile psiFile, @NotNull HighlightInfo info) { TextAttributesKey key = info.type.getAttributesKey(); InspectionProfile profile = getCurrentProfile(psiFile); return key.equals(profile.getEditorAttributes(UnusedImportInspection.SHORT_NAME, psiFile)) || key.equals(JavaHighlightInfoTypes.UNUSED_IMPORT.getAttributesKey()); }