void () { if (myShowDialog && myCreateRepositoryForTheRadioButton.isSelected()) { enableOKAction(); mySelectedDir = myProject.getBaseDir(); } else { final VirtualFile vf = VcsUtil.getVirtualFile(myTextFieldBrowser.getText()); if (vf == null) { disableOKAction(); mySelectedDir = null; return; } vf.refresh(false, false); if (vf.exists() && vf.isValid() && vf.isDirectory()) { enableOKAction(); mySelectedDir = vf; } else { disableOKAction(); mySelectedDir = null; } } }