public static boolean sameBooleanOrNumeric(PsiExpression thenExpression, PsiExpression elseExpression) {
    final ConditionalKind thenKind = isBooleanOrNumeric(thenExpression);
    final ConditionalKind elseKind = isBooleanOrNumeric(elseExpression);
    if (thenKind == elseKind || elseKind == ConditionalKind.NULL) return thenKind != null;
    if (thenKind == ConditionalKind.NULL) return elseKind != null;
    return false;
  }
public static boolean sameBooleanOrNumeric(PsiExpression thenExpression, PsiExpression elseExpression)