public static @Nullable PsiClass createClassWithDefaultProperties(String newClassName, Properties classProperties, String templateName,
                                                                    @NotNull PsiDirectory directory)
    throws IncorrectOperationException {
    Properties defaultProperties = FileTemplateManager.getInstance(directory.getProject()).getDefaultProperties();
    Properties properties = new Properties(defaultProperties);
    properties.putAll(classProperties);

    return createClassNamed(newClassName, properties, templateName, directory);
  }
public static @Nullable PsiClass createClassWithDefaultProperties(String newClassName, Properties classProperties, String templateName,
                                                                    @NotNull PsiDirectory directory)