private static Map<String, Attribute> getOptions(InspectionProfileEntry entry) {
    Element element = new Element("options");
    try {
      ScopeToolState.tryWriteSettings(entry, element);
      List<Content> options = element.getContent();
      if (options.isEmpty()) {
        return Collections.emptyMap();
      }

      Map<String, Attribute> set = new HashMap<>(options.size());
      for (Content option : options) {
        if (option instanceof Element el) {
          Attribute nameAttr = el.getAttribute("name");
          Attribute valueAttr = el.getAttribute("value");
          if (nameAttr != null && valueAttr != null) {
            set.put(nameAttr.getValue(), valueAttr);
          }
        }
      }
      return set;
    }
    catch (Exception e) {
      return Collections.emptyMap();
    }
  }
private static Map<String, Attribute> getOptions(InspectionProfileEntry entry)