boolean (@NotNull InspectionResultsView view, AnActionEvent e) { final InspectionToolWrapper<?, ?> wrapper = getToolWrapper(e); if (wrapper == null) { return false; } final HighlightDisplayKey key = HighlightDisplayKey.find(wrapper.getShortName()); if (key == null) { return false; } return InspectionProjectProfileManager.getInstance(view.getProject()).getCurrentProfile().isToolEnabled(key); }