} else {
//the generator token has many associated messages - the messages may have different types,
//so, we need to get them by types
IToken generator = message.getGenerator();
CompositeMessage compositeMessage;
if (generator != null) {
compositeMessage = new CompositeMessage(message.getType(), generator, prefs);
} else {
compositeMessage = new CompositeMessage(message.getType(), message.getStartLine(document),
message.getEndLine(document), message.getStartCol(document),
message.getEndCol(document), prefs);
}
for (IMessage m : l) {
compositeMessage.addMessage(m);
}
//don't add additional info: not being used
// addAdditionalInfoToUnusedWildImport(compositeMessage);
addToResult(result, compositeMessage);