public void addCaseExpression(PsiExpression expression) {
      if (createPatternCaseText(expression) != null) {
        hasPattern = true;
      }
      caseExpressions.add(expression);
    }
public void addCaseExpression(PsiExpression expression)