code: private void validateDepDefinitionUniqueness(final List<TriggerDependencyBean> dependencies) {
      for (int i = 0; i < dependencies.size(); i++) {
        for (int j = i + 1; j < dependencies.size(); j++) {
          final boolean duplicateDepDefFound =
              dependencies.get(i).getType().equals(dependencies.get(j)
                  .getType()) && dependencies.get(i).getParams()
                  .equals(dependencies.get(j).getParams());
          Preconditions.checkArgument(!duplicateDepDefFound, String.format("duplicate dependency"
                  + "config %s found, dependency config should be unique",
              dependencies.get(i).getName()));
        }
      }
    }
docs: check uniqueness of dependency type and params