class MavenMixedDependenciesValidator extends AbstractMavenPluginDependenciesValidator {

    @Inject
    MavenMixedDependenciesValidator(PluginValidationManager pluginValidationManager) {
        super(pluginValidationManager);
    }

    @Override
    protected void doValidate(
            RepositorySystemSession session,
            Artifact pluginArtifact,
            ArtifactDescriptorResult artifactDescriptorResult) {<FILL_FUNCTION_BODY>}
}

        Set<String> mavenVersions = artifactDescriptorResult.getDependencies().stream()
                .map(Dependency::getArtifact)
                .filter(d -> "org.apache.maven".equals(d.getGroupId()))
                .filter(d -> !DefaultPluginValidationManager.EXPECTED_PROVIDED_SCOPE_EXCLUSIONS_GA.contains(
                        d.getGroupId() + ":" + d.getArtifactId()))
                .map(Artifact::getVersion)
                .collect(Collectors.toSet());

        if (mavenVersions.size() > 1) {
            pluginValidationManager.reportPluginValidationIssue(
                    PluginValidationManager.IssueLocality.EXTERNAL,
                    session,
                    pluginArtifact,
                    "Plugin mixes multiple Maven versions: " + mavenVersions);
        }
    
<methods>public void validate(RepositorySystemSession, Artifact, ArtifactDescriptorResult) <variables>protected final non-sealed org.apache.maven.plugin.PluginValidationManager pluginValidationManager