boolean (@NotNull InspectionResultsView view, AnActionEvent e) { final Set<SuppressableInspectionTreeNode> nodesToSuppress = getNodesToSuppress(e); if (nodesToSuppress.isEmpty()) return false; if (nodesToSuppress.size() == 1) { final PsiElement element = Objects.requireNonNull(ContainerUtil.getFirstItem(nodesToSuppress)).getSuppressContent().getFirst(); String text = mySuppressAction.getFamilyName(); if (element != null) { mySuppressAction.isAvailable(e.getProject(), null, element); text = mySuppressAction.getText(); } e.getPresentation().setText(text); } else { e.getPresentation().setText(mySuppressAction.getFamilyName()); } return true; }