void () { if (myResult.success()) { updateComponents(myPushSupport.getDefaultTarget(myRepository, mySource)); if (myFireOnChangeAction != null) { myFireOnChangeAction.run(); } } else { String message = GitBundle.message("push.dialog.target.panel.couldnt.add.remote", myResult.getErrorOutputAsHtmlString()); LOG.warn(message); Messages.showErrorDialog(myProject, XmlStringUtil.wrapInHtml(message), GitBundle.message("push.dialog.target.panel.add.remote")); } }