void (@NotNull VirtualFile chosenFile) { myBaseDir = chosenFile.getPath(); if (isProjectNameChanged(nameField.getText()) && !nameField.getText().equals(chosenFile.getName())) { myExternalModify = true; locationField.setText(new File(chosenFile.getPath(), nameField.getText()).getPath()); myExternalModify = false; } else { myExternalModify = true; locationField.setText(chosenFile.getPath()); nameField.setText(chosenFile.getName()); myExternalModify = false; } }