docs: public DurationFieldType[] getFieldTypes() {
          DurationFieldType[] result = new DurationFieldType[size()];
          for (int i = 0; i < result.length; i++) {
              result[i] = getFieldType(i);
          }
          return result;
      }