public static Manifest createOrFindManifest(@Nullable PluginBuildConfiguration configuration) throws IOException {
    Manifest manifest = new Manifest();
    VirtualFile vManifest;
    if (configuration != null && configuration.isUseUserManifest() && (vManifest = configuration.getManifest()) != null) {
      try (InputStream in = new BufferedInputStream(vManifest.getInputStream())) {
        manifest.read(in);
      }
    }
    else {
      ManifestBuilder.setGlobalAttributes(manifest.getMainAttributes());
    }
    return manifest;
  }
public static Manifest createOrFindManifest(@Nullable PluginBuildConfiguration configuration)