PsiClass (String name, String classTemplateName, PsiDirectory directory, @NotNull Map<String, String> properties) { if (name.contains(".")) { String[] names = name.split("\\."); for (int i = 0; i < names.length - 1; i++) { directory = CreateFileAction.findOrCreateSubdirectory(directory, names[i]); } name = names[names.length - 1]; } return JavaDirectoryService.getInstance().createClass(directory, name, classTemplateName, false, properties); }