code: public ValidationData findByParamTypeAndMethodAndUrlAndNameAndParentId(ParamType paramType, String method, String url, String name, Long parentId) {
          if (parentId == null) {
              return this.findByParamTypeAndMethodAndUrlAndName(paramType, method, url, name).stream().filter(d -> d.getParentId() == null).findAny().orElse(null);
          }
          return this.findByParamTypeAndMethodAndUrlAndName(paramType, method, url, name).stream()
                  .filter(d -> d.getParentId() != null && d.getParentId().equals(parentId)).findAny().orElse(null);
  
      }
docs: Find by param type and method and url and name and parent id validation data.
  
  @param paramType the param type
  @param method    the method
  @param url       the url
  @param name      the name
  @param parentId  the parent id
  @return the validation data