code: private boolean isDepOfIdlArtifact(Artifact artifact, Map<String, Artifact> depsMap) {
      List<String> depTrail = artifact.getDependencyTrail();
      // depTrail can be null sometimes, which seems like a maven bug
      if (depTrail != null) {
        for (String name : depTrail) {
          Artifact dep = depsMap.get(name);
          if (dep != null && isIdlCalssifier(dep, classifier)) {
            return true;
          }
        }
      }
      return false;
    }
docs: Checks if the artifact is dependency of an dependent idl artifact
  @returns true if the artifact was a dependency of idl artifact