CompilerMessage message = messages.get(i);
if(message.getSeverity().compareTo(CompilerMessage.Severity.ERROR) < 0) {
continue;
}
if (message.getException() instanceof CALRefactoringException) {
CALRefactoringException refactoringException = (CALRefactoringException) message.getException();
listModel.addElement(refactoringException.getDescription());
} else {
listModel.addElement(message.getMessage());
}
}