@Override
  protected VirtualFile[] doAddItems() {
    try {
      String[] files = chooseRemoteFiles();

      final String sourcesLocalPath = PySdkExtKt.getRemoteSourcesLocalPath(mySdk).toString();

      VirtualFile[] vFiles = new VirtualFile[files.length];

      int i = 0;
      for (String file : files) {
        String localRoot = PyRemoteSourceItem.localPathForRemoteRoot(sourcesLocalPath, file);

        myNewMappings.add(new PathMappingSettings.PathMapping(localRoot, file));
        myRemoteSdkData.getPathMappings().addMappingCheckUnique(localRoot, file);

        if (!new File(localRoot).exists()) {
          new File(localRoot).mkdirs();
        }
        vFiles[i++] = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(new File(localRoot));
      }

      vFiles = adjustAddedFileSet(myPanel, vFiles);
      List<VirtualFile> added = new ArrayList<>(vFiles.length);
      for (VirtualFile vFile : vFiles) {
        if (addElement(vFile)) {
          added.add(vFile);
        }
      }
      return VfsUtilCore.toVirtualFileArray(added);
    }
    catch (Exception e) {
      LOG.error("Failed to add Python paths", e);
    }
    return VirtualFile.EMPTY_ARRAY;
  }
@Override
  protected VirtualFile[] doAddItems()