docs: private void storeForPatternOrThrowException(final String newPattern, final ParentStep parentStep)
              throws DuplicatePatternException {
  
          if (!this.parentMap.containsPattern(newPattern)) {
              this.parentMap.put(newPattern, parentStep);
          } else {
              throw new DuplicatePatternException(newPattern, this.parentMap.getValueForPattern(newPattern), parentStep);
          }
  
      }