if (override != null) {
return override;
}
if (module != null) {
final CheckStyleModuleConfiguration moduleConfiguration
= ModuleServiceManager.getService(module, CheckStyleModuleConfiguration.class);
if (moduleConfiguration == null) {
throw new IllegalStateException("Couldn't get checkstyle module configuration");
}
if (moduleConfiguration.isExcluded()) {
return null;
}
return moduleConfiguration.getActiveConfiguration();
}
return plugin.getConfiguration().getActiveConfiguration();
}