public void setDirectory(@Nullable VirtualFile directory) {
    if (directory == null) {
      return;
    }
    final String url = directory.getPresentableUrl();
    final ComboBox<String> comboBox = myDirectoryComboBox.getChildComponent();
    comboBox.getEditor().setItem(url);
    myDirectoryComboBox.getChildComponent().setSelectedItem(url);
  }
public void setDirectory(@Nullable VirtualFile directory)