code: public static File getArtifactFile(AbstractWisdomMojo mojo, String artifactId, String type) {
          File file = getArtifactFileFromProjectDependencies(mojo, artifactId, type);
          if (file == null) {
              file = getArtifactFileFromPluginDependencies(mojo, artifactId, type);
          }
          return file;
      }
docs: Gets the file of the dependency with the given artifact id from the project dependencies and if not found from
  the plugin dependencies. This method also check the extension.
  
  @param mojo       the mojo
  @param artifactId the name of the artifact to find
  @param type  the extension of the artifact to find
  @return the artifact file, null if not found