Anyone know how to collect a file diagnostic (Hints) ? There is an api to set those
org.netbeans.spi.editor.hints.HintsController.setErrors(document, "", errors) But what i am looking for is something like HintsController.getErrors()I managed to achieve this with: org.netbeans.modules.editor.hints.AnnotationHolder ah = AnnotationHolder.getInstance(source.getFileObject()); List<ErrorDescription> errors = ah.getErrors(); But this need an implementation version of module org.netbeans.api:org-netbeans-spi-editor-hints:jar and i would like to avoid any implementation version in my plugin otherwise distribution will not be easy