#fixed code
                              public MetadataBuilder addFile(@NotNull File source) {
    return addFile(source, source.getName());
  }
#vulnerable code 
                              public MetadataBuilder addFile(@NotNull File source) {
    sources.add(new Source(source));
    return this;
  } 
                            #location 2 
                            #vulnerability type RESOURCE_LEAK