public static Template setupTemplate(PsiField field,
                                       Object expectedTypes,
                                       PsiClass targetClass,
                                       Editor editor,
                                       PsiElement context,
                                       boolean createConstantField) {
    return setupTemplate(field, expectedTypes, targetClass, editor, context, createConstantField, true);
  }
public static Template setupTemplate(PsiField field,
                                       Object expectedTypes,
                                       PsiClass targetClass,
                                       Editor editor,
                                       PsiElement context,
                                       boolean createConstantField)