private boolean namesAreEqual ( Dependency dependency , Dependency nextDependency ) { return dependency . getName ( ) != null && dependency . getName ( ) . equals ( nextDependency . getName ( ) ) ; }
Determine if the dependency name is equal in the given dependencies .