GitHttpLoginDialog (@NotNull String url, @Nullable String username, boolean editableUsername, @NotNull Map<String, ? extends InteractiveGitHttpAuthDataProvider> interactiveProviders) { Ref<GitHttpLoginDialog> dialogRef = Ref.create(); ApplicationManager.getApplication().invokeAndWait(() -> { GitHttpLoginDialog dialog = new GitHttpLoginDialog(myProject, url, myPasswordSafeDelegate.isRememberPasswordByDefault(), username, editableUsername, showActionForGitHelper); dialog.setInteractiveDataProviders(interactiveProviders); dialogRef.set(dialog); DialogManager.show(dialog); }, ModalityState.any()); return dialogRef.get(); }