code: protected Set<Artifact> checkDependencies( Set<Artifact> theDependencies, Log log )
          throws EnforcerRuleException
      {
          Set<Artifact> excluded = checkDependencies( theDependencies, excludes );
  
          // anything specifically included should be removed
          // from the ban list.
          if ( excluded != null )
          {
              Set<Artifact> included = checkDependencies( theDependencies, includes );
              if ( included != null )
              {
                  excluded.removeAll( included );
              }
          }
          return excluded;
  
      }
docs: {@inheritDoc}