List<String> codesetNames = codesets.getValues();
if (codesetNames!=null) {
for (String csname : codesetNames) {
CodeSet cs = g.getCodeSet(csname);
if (cs!=null) {
ValidationResult result = cs.validateBuildType(bt);
if (!result.isOk()) {
return result.withMessage("CodeSet '"+csname+"': "+result.msg);
}
ImportStrategy importStrategy = bt.getImportStrategy();
if (!importStrategy.isSupported()) {
//This means some required STS component like m2e or gradle tooling is not installed
return ValidationResult.error(bt.getNotInstalledMessage());