private static CreateDirectoryOrPackageHandler getNewOrdinaryPackageHandler(@NotNull Project project,
                                                                              @NotNull PsiDirectory directory,
                                                                              @NotNull SmartPsiElementPointer<PsiDirectory> directoryPointer) {
    return new CreateDirectoryOrPackageHandler(project, directory, false, ".") {
      @Override
      protected void createDirectories(String subDirName) {
        super.createDirectories(subDirName);
        PsiFileSystemItem element = getCreatedElement();
        final PsiDirectory restoredDirectory = directoryPointer.getElement();
        if (element instanceof PsiDirectory && restoredDirectory != null) {
          createInitPyInHierarchy((PsiDirectory)element, restoredDirectory);
        }
      }
    };
  }
private static CreateDirectoryOrPackageHandler getNewOrdinaryPackageHandler(@NotNull Project project,
                                                                              @NotNull PsiDirectory directory,
                                                                              @NotNull SmartPsiElementPointer<PsiDirectory> directoryPointer)