code: private Category getSelectedCategoryByMatch() {
      // Strategy: Go from most specific match to most unspecific match
      Category firstFilteredSetting =
          filteredSettingsLst.size() == 0 ? null : settingCategoryMap.get(filteredSettingsLst.get(0));
      Category firstFilteredGroup =
          filteredGroupsLst.size() == 0 ? null : groupCategoryMap.get(filteredGroupsLst.get(0));
      Category firstFilteredCategory =
          filteredCategoriesLst.size() == 0 ? null : filteredCategoriesLst.get(0);
      return compareMatches(
          firstFilteredSetting, firstFilteredGroup, firstFilteredCategory,
          settingMatches, groupMatches, categoryMatches
      );
    }
docs: asciidoctor Documentation - tag::compareMatches[]