boolean (final HighlightDisplayKey key, PsiElement element) { InspectionToolWrapper<?, ?> entry = ContainerUtil.find(myInspectionTools, inspectionProfileEntry -> { return key.equals(HighlightDisplayKey.find(inspectionProfileEntry.getShortName())); }); assert entry != null; return !myDisabledTools.contains(entry); }