docs: public static List<DeclarationMatcher> matchDeclarationsToTuple(Declaration[] declarations) {
          List<DeclarationMatcher> matchers = new ArrayList<DeclarationMatcher>();
          for (int i = 0; i < declarations.length; i++) {
              matchers.add(new DeclarationMatcher(i, declarations[i]));
          }
          Collections.sort(matchers);
          return matchers;
      }