boolean (@NotNull final PsiElement element, @NotNull final Editor editor, @NotNull PsiFile file, @NotNull DataContext context) { for (InvertBooleanDelegate delegate : InvertBooleanDelegate.EP_NAME.getExtensionList()) { if (delegate.isAvailableOnElement(element)) { return true; } } return false; }