boolean (@NotNull final PsiExpression start, boolean negated) { final PsiExpression negation = BoolUtils.findNegation(start); if (negation == null) return negated; else return isNegated(negation, !negated); }