boolean (PsiElement @NotNull [] elements) { if (elements.length == 1 && elements[0] != null) { for (InvertBooleanDelegate delegate : InvertBooleanDelegate.EP_NAME.getExtensionList()) { if (delegate.isVisibleOnElement(elements[0])) { return true; } } } return false; }