List<ParseException> syntaxErrors = sjResult.getJavaParser().syntaxErrors;
Document document = result.getSnapshot().getSource().getDocument(false);
List<ErrorDescription> errors = new ArrayList<ErrorDescription>();
for (int px = 0; px < syntaxErrors.size(); px++) {
ParseException syntaxError = syntaxErrors.get(px);
Logger logger = Logger.getLogger(SyntaxErrorsHighlightingTask.class.getName());
// Exceptions.printStackTrace(syntaxError);
Token token = syntaxError.currentToken;
String msg = syntaxError.getMessage();
boolean isHint = false;
if (syntaxError instanceof ReparseException) {
ReparseException pex = (ReparseException) syntaxError;
pex = pex.expandIncludedFile();
isHint = pex.isHint;