code: private boolean ecoSystemIs(String ecoSystem, Dependency dependency, Dependency nextDependency) {
          return ecoSystem.equals(dependency.getEcosystem()) && ecoSystem.equals(nextDependency.getEcosystem());
      }
docs: Determine if the dependency ecosystem is equal in the given dependencies.
  
  @param ecoSystem the ecosystem to validate against
  @param dependency a dependency to compare
  @param nextDependency a dependency to compare
  @return true if the ecosystem is equal in both dependencies; otherwise
  false