docs: public static VariableNamePattern fromTemplateVariables(VariableNumMap templateVariables,
        VariableNumMap fixedVariables) {
      List<VariableNameMatcher> matchers = Lists.newArrayList();
      for (String variableName : templateVariables.getVariableNamesArray()) {
        int varIndex = variableName.indexOf("?(");
        String variableNamePrefix = variableName.substring(0, varIndex);
        String variableNameSuffix = variableName.substring(varIndex + 1);
  
        int offsetIndex = variableNameSuffix.indexOf(")");
        int offset = Integer.parseInt(variableNameSuffix.substring(1, offsetIndex));
        variableNameSuffix = variableNameSuffix.substring(offsetIndex + 1);
        matchers.add(new VariableNameMatcher(variableNamePrefix, variableNameSuffix, offset));
      }
      return new VariableNamePattern(matchers, templateVariables, fixedVariables);
    }