}
}
}
IPotentialProblemsAdvisor advisor = options.getProblemsAdvisor();
if(advisor != null && advisor.circularDependencyPreference().isWarningOrError()) {
ValidationPreference preference = options.getProblemsAdvisor().circularDependencyPreference();
checkCircularDependencies(moduleData, diagnostics, root);
for(MetadataInfo mi : moduleData.values()) {
if(isValidationWanted(examinedFiles, mi.getFile())) {
for(String circularity : mi.getCircularityMessages())
addFileDiagnostic(
diagnostics, preference.isError()
? Diagnostic.ERROR
: Diagnostic.WARNING, mi.getFile(), root, circularity,
IPPDiagnostics.ISSUE__CIRCULAR_MODULE_DEPENDENCY);
}
}