VirtualFile[] selectedDirectories = FileChooser.chooseFiles(descriptor, project, null);
if (selectedDirectories.length > 0) {
final String fileName = fileNameProvider.getFileName();
final VirtualFile parentDirectory = selectedDirectories[0];
new WriteActionRunner() {
@Override
public void run() {
try {
VirtualFile virtualFile = parentDirectory.createChildData(this, fileName);
bindDDLFile(object, virtualFile);