void (final @NotNull Project project, final @Nullable Listener listener) { FileDocumentManager.getInstance().saveAllDocuments(); HgCloneDialog dialog = new HgCloneDialog(project); if (!dialog.showAndGet()) { return; } dialog.rememberSettings(); String directoryName = dialog.getDirectoryName(); String sourceRepositoryURL = dialog.getSourceRepositoryURL(); String parentDirectory = dialog.getParentDirectory(); doClone(project, listener, directoryName, sourceRepositoryURL, parentDirectory); }