myFileNameTextField.setText(model.getFileName());
final FileNameKeyListener keyListener = new FileNameKeyListener();
myFileNameTextField.addKeyListener(keyListener);
String folderChooserTitle = CucumberBundle.message("cucumber.quick.fix.create.step.folder.chooser.title");
final FileChooserDescriptor folderChooserDescriptor = FileChooserDescriptorFactory.createSingleFolderDescriptor();
folderChooserDescriptor.setTitle(folderChooserTitle);
folderChooserDescriptor.setRoots(model.getDirectory().getVirtualFile());
folderChooserDescriptor.withTreeRootVisible(true);
folderChooserDescriptor.setShowFileSystemRoots(false);
folderChooserDescriptor.setHideIgnored(true);
myDirectoryTextField.addBrowseFolderListener(folderChooserTitle, null, project, folderChooserDescriptor);
myDirectoryTextField.getTextField().addKeyListener(keyListener);
myDirectoryTextField.setText(FileUtil.toSystemDependentName(model.getDefaultDirectory().getVirtualFile().getPath()));
validateAll();