code: public static boolean areEquivalent(Coordinate l, Coordinate r)
     {
        if (l == r)
        {
           return true;
        }
        if ((l == null) && (r == null))
        {
           return true;
        }
        else if ((l == null) || (r == null))
        {
           return false;
        }
  
        String lPackacking = l.getPackaging() == null ? "jar" : l.getPackaging();
        String rPackaging = r.getPackaging() == null ? "jar" : r.getPackaging();
  
        return !(l.getArtifactId() != null ? !l.getArtifactId()
                 .equals(r.getArtifactId()) : r.getArtifactId() != null)
                 &&
                 !(l.getGroupId() != null ? !l.getGroupId()
                          .equals(r.getGroupId()) : r.getGroupId() != null)
                 &&
                 !(l.getClassifier() != null ? !l.getClassifier()
                          .equals(r.getClassifier()) : r.getClassifier() != null)
                 &&
                 lPackacking.equals(rPackaging);
     }
docs: Compare the {@link Coordinate} of each given {@link Dependency} for equivalence.