@Nullable
  public VirtualFile getDirectory() {
    final ComboBox<String> comboBox = myDirectoryComboBox.getChildComponent();
    final String directoryName = (String)comboBox.getSelectedItem();
    if (StringUtil.isEmptyOrSpaces(directoryName)) {
      return null;
    }

    final String path = FileUtil.toSystemIndependentName(directoryName);
    final VirtualFile virtualFile = LocalFileSystem.getInstance().findFileByPath(path);
    return virtualFile == null || !virtualFile.isDirectory() ? null : virtualFile;
  }
@Nullable
  public VirtualFile getDirectory()