atic @NotNull Map<JarLoader.Attribute, String> getAttributes(@NotNull Attributes attributes) {
    if (attributes.isEmpty()) {
      return Collections.emptyMap();
    }

    Map<JarLoader.Attribute, String> map = null;
    for (Map.Entry<JarLoader.Attribute, Attributes.Name> p : PACKAGE_FIELDS) {
      String value = attributes.getValue(p.getValue());
      if (value != null) {
        if (map == null) {
          map = new EnumMap<>(JarLoader.Attribute.class);
        }
        map.put(p.getKey(), value);
      }
    }
    return map == null ? Collections.emptyMap() : map;
  }


atic @NotNull Map<JarLoader.Attribute, String> getAttributes(@NotNull Attributes attributes) {