public static void createTemplate(PsiSwitchBlock block, List<PsiSwitchLabelStatementBase> addedLabels, ModPsiUpdater updater) {
    if (!(block instanceof PsiSwitchExpression)) return;
    List<PsiExpression> elementsToReplace = getElementsToReplace(addedLabels);
    ModTemplateBuilder builder = updater.templateBuilder();
    for (PsiExpression expression : elementsToReplace) {
      if (!expression.isValid()) continue;
      builder.field(expression, new ConstantNode(expression.getText()));
    }
  }
public static void createTemplate(PsiSwitchBlock block, List<PsiSwitchLabelStatementBase> addedLabels, ModPsiUpdater updater)