*/
private static void addIssueDiagnostic(Diagnostic diagnostics, Issue issue, File processedFile, File rootDirectory) {
DiagnosticType type = issue.isSyntaxError()
? GEPPETTO_SYNTAX
: GEPPETTO;
DetailedFileDiagnostic dft = new DetailedFileDiagnostic(
translateIssueSeverity(issue.getSeverity()), type, issue.getMessage(), uriToFile(
issue.getUriToProblem(), rootDirectory));
dft.setLineNumber(issue.getLineNumber());
dft.setLength(issue.getLength());
dft.setOffset(issue.getOffset());
dft.setIssue(issue.getCode());
dft.setIssueData(issue.getData());
dft.setNode("");
diagnostics.addChild(dft);
}