void (@NotNull TextFieldWithBrowseButton textField) { textField.setEditable(true); textField.addActionListener(e -> { try { Url url = createUrl(textField.getText(), false); Url selectedUrl = selectLocation(myVcs.getProject(), url); if (selectedUrl != null) { textField.setText(selectedUrl.toDecodedString()); } } catch (SvnBindException ex) { showErrorDialog(myVcs.getProject(), ex.getMessage(), message("dialog.title.select.repository.location")); } }); }