@Nullable final String baseClass,
@NotNull String suggestedName,
@NotNull String suggestedPackage) {
Project project = origin.getProject();
Module module = ModuleUtilCore.findModuleForPsiElement(origin);
CreateClassDialog dialog = new CreateClassDialog(project, title, suggestedName, suggestedPackage, CreateClassKind.CLASS, true, module);
if (!dialog.showAndGet()) return null;
final String className = dialog.getClassName();
final PsiDirectory targetDirectory = dialog.getTargetDirectory();
return createClass(className, targetDirectory, baseClass, title, null);
}