code: @Override
      public List<Metric> filter(Map<Metric, String> extendedSortedMap, String limit) {
          SystemAssert.requireArgument(extendedSortedMap != null && !extendedSortedMap.isEmpty(), "New map is not constructed successfully!");
          SystemAssert.requireArgument(limit != null && !limit.equals(""), "Limit must be provided!");
  
          List<Metric> result = new ArrayList<Metric>();
  
          for (Metric metric : extendedSortedMap.keySet()) {
              result.add(0, metric);
          }
          if (result.size() <= Integer.parseInt(limit)) {
              return result;
          }
          return result.subList(0, Integer.parseInt(limit));
      }
docs: ~ Methods **************************************************************************************************************************************