void () { //any changes are senselessly if no remotes if (myError != null || myRepository.getRemotes().isEmpty()) return; String remoteName = myRemoteRenderer.getText(); String branchName = myTargetEditor.getText(); try { GitPushTarget target = GitPushTarget.parse(myRepository, remoteName, branchName); if (!target.equals(myCurrentTarget)) { myCurrentTarget = target; myTargetRenderer.updateLinkText(branchName); if (!myEventFromRemoteChooser) { myBranchWasUpdatedManually = true; } } } catch (ParseException e) { LOG.error("Invalid remote name shouldn't be allowed. [" + remoteName + ", " + branchName + "]", e); } }