public static @NotNull Path unpackPlugin(@NotNull Path sourceFile, @NotNull Path targetPath) throws IOException {
    Path target;
    if (sourceFile.getFileName().toString().endsWith(".jar")) {
      target = targetPath.resolve(sourceFile.getFileName());
      FileUtilRt.copy(sourceFile.toFile(), target.toFile());
    }
    else {
      target = targetPath.resolve(rootEntryName(sourceFile));
      NioFiles.deleteRecursively(target);
      new Decompressor.Zip(sourceFile).extract(targetPath);
    }
    return target;
  }
public static @NotNull Path unpackPlugin(@NotNull Path sourceFile, @NotNull Path targetPath)