private static PsiClass createClassFromTemplate(@NotNull PsiDirectory dir, String name, String templateName) throws IncorrectOperationException {
    return createClassFromTemplate(dir, name, templateName, false, Collections.emptyMap());
  }
private static PsiClass createClassFromTemplate(@NotNull PsiDirectory dir, String name, String templateName)