ExpressionToConstantComparison (PsiExpression candidate, PsiExpression left, PsiExpression right) { if (left == null || right == null) return null; ExpressionToConstantComparison fromLeft = tryExtract(candidate, left, right); if (fromLeft != null) return fromLeft; return tryExtract(candidate, right, left); }