public Object getData(String dataId) {
   if (CommonDataKeys.VIRTUAL_FILE_ARRAY.is(dataId)) {
     return myFileSystemTree.getSelectedFiles();
   } else if (PATH_FIELD.is(dataId)) {
     return new PathField() {
       public void toggleVisible() {
         toggleShowTextField();
       }
     };
   } else if (FileSystemTree.DATA_KEY.is(dataId)) {
     return myFileSystemTree;
   }
   return myChooserDescriptor.getUserData(dataId);
 }
    public Object getData(String dataId) {
      if (PATH_FIELD.is(dataId)) {
        return (PathField) FileChooserDialogImpl.this::toggleShowTextField;
      }

      if (FileSystemTree.DATA_KEY.is(dataId)) {
        return myFileSystemTree;
      }

      if (PlatformDataKeys.PASTE_PROVIDER.is(dataId)) {
        return myPasteProvider;
      }

      return myChooserDescriptor.getUserData(dataId);
    }