code: @Override
      public boolean accepts(final MavenDependency dependency, final List<MavenDependency> dependenciesForResolution,
              final List<MavenDependency> dependencyAncestors) {
          if (bannedDependencies.contains(dependency)) {
              return false;
          }
  
          if (rejectTransitives) {
              if (dependencyAncestors != null && dependencyAncestors.size() != 0) {
                  return dependencyAncestors.get(0).equals(dependency);
              }
          }
  
          return true;
      }
docs: {@inheritDoc}
  
  @see org.jboss.shrinkwrap.resolver.api.maven.filter.MavenResolutionFilter#accepts(org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependency,
  java.util.List, java.util.List)