public static @Nullable PsiClass createClassNamed(String newClassName, String templateName, @NotNull PsiDirectory directory) throws IncorrectOperationException {
    return createClassNamed(newClassName, FileTemplateManager.getInstance(directory.getProject()).getDefaultProperties(), templateName, directory);
  }
public static @Nullable PsiClass createClassNamed(String newClassName, String templateName, @NotNull PsiDirectory directory)