if(importedModuleLocations == null)
importedModuleLocations = Collections.emptyList();
RubyHelper.setRubyServicesFactory(JRubyServices.FACTORY);
ValidationOptions options = getValidationOptions(moduleLocations, importedModuleLocations);
new PPDiagnosticsSetup(complianceLevel, options.getProblemsAdvisor()).createInjectorAndDoEMFRegistration();
getValidationService().validate(
result, getModulesDir(), options,
importedModuleLocations.toArray(new File[importedModuleLocations.size()]), new NullProgressMonitor());
}