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