void (@Nullable PsiCaseLabelElementList values) { if (values != null) { for (PsiCaseLabelElement caseValue : values.getElements()) { ProgressManager.checkCanceled(); if (caseValue instanceof PsiExpression) { generateExpressionInstructions((PsiExpression)caseValue); } else if (caseValue instanceof PsiPattern) { processPattern((PsiPattern)caseValue); } } } }