ValidationInfo () { try { myTrunkUrl = createUrl(myTrunkLocationTextField.getText(), false); } catch (SvnBindException e) { return new ValidationInfo(e.getMessage(), myTrunkLocationTextField.getTextField()); } if (!isAncestor(myRootUrl, myTrunkUrl) || myTrunkUrl.equals(myRootUrl)) { return new ValidationInfo(message("configure.branches.error.wrong.url", myRootUrl), myTrunkLocationTextField.getTextField()); } return null; }