spi/src/main/java/org/jboss/pnc/spi/coordinator/BuildTask.java
public boolean hasDirectConfigDependencyOn(BuildTask buildTask) {
        if (buildTask == null || this.equals(buildTask)) {
            return false;
        }

        BuildConfiguration buildConfiguration = buildConfigurationAudited.getBuildConfiguration();
        if (buildConfiguration == null || buildConfiguration.getDependencies() == null) {
            return false;
        }

        return buildConfiguration.getDependencies().contains(buildTask.getBuildConfigurationAudited().getBuildConfiguration());
    }
public boolean hasDirectConfigDependencyOn(BuildTask buildTask) {
        if (buildTask == null || this.equals(buildTask)) {
            return false;
        }

        BuildConfiguration buildConfiguration = buildConfigurationAudited.getBuildConfiguration();
        if (buildConfiguration == null || buildConfiguration.getDependencies() == null) {
            return false;
        }

        return buildConfiguration.getDependencies().contains(buildTask.getBuildConfigurationAudited().getBuildConfiguration());
    }
Check if this build task has a direct build configuration dependency on the given build task

@param buildTask The buildTask with the config to check
@return true if this task's build config has a direct dependency on the build config of the given task, otherwise false