code: public static Set<Artifact> getArtifactsToConsider(AbstractWisdomMojo mojo, DependencyGraphBuilder graph,
                                                         boolean transitive, ArtifactFilter filter) {
          // No transitive.
          Set<Artifact> artifacts;
          if (!transitive) {
              // Direct dependencies that the current project has (no transitives)
              artifacts = mojo.project.getDependencyArtifacts();
          } else {
              // All dependencies that the current project has, including transitive ones. Contents are lazily
              // populated, so depending on what phases have run dependencies in some scopes won't be
              // included.
              artifacts = getTransitiveDependencies(mojo, graph, filter);
          }
          return artifacts;
      }
docs: Gets the list of artifact to consider during the analysis.
  
  @param mojo       the mojo
  @param graph      the dependency graph builder
  @param transitive do we have to include transitive dependencies
  @return the set of artifacts