void (PsiElement namedElement, PsiElement expression, Language language, Collection<? super PsiElement> elementsToInvert) { if (!expression.getLanguage().is(language)){ final InvertBooleanDelegate delegate = findInvertBooleanDelegate(expression); if (delegate != null) { delegate.collectElementsToInvert(namedElement, expression, elementsToInvert); } } }