void (@NotNull Project project, @NotNull Document document, boolean errorFound) { //GHP has found error. Flag is used by ExternalToolPass to decide whether to run or not synchronized(myDocumentToStatusMap) { FileStatus status = myDocumentToStatusMap.get(document); if (status == null){ if (!errorFound) return; status = new FileStatus(project); myDocumentToStatusMap.put(document, status); } status.errorFound = errorFound; } }