Log.log(e); //just to be safe... (could happen if the document changes during the process).
}
}
if (!monitor.isCanceled()) {
messages.addAll(new Pep8Visitor().getMessages(module, document, monitor, prefs));
}
return messages.toArray(new IMessage[messages.size()]);
}