for (Module currentModule : this.modules){
if (currentModule.getIncompatibilities() != null){
for (String currentIncompatibility : currentModule.getIncompatibilities()){
for (Module currentCheckedModule : this.modules){
if (currentCheckedModule.getId().equals(currentIncompatibility))
throw new IncompatibleModuleException(currentModule.getId(), currentCheckedModule.getId());
}
}
}
}
}