void (@NotNull ProblemDescriptor descriptor) { applyIncrementallyCallback.accept(descriptor, this); synchronized (this) { super.registerProblem(descriptor); } HighlightSeverity severity = myProfileWrapper.getErrorLevel(myToolWrapper.getDisplayKey(), getFile()).getSeverity(); if (severity.compareTo(HighlightSeverity.ERROR) >= 0) { if (errorStamp == 0) { errorStamp = System.nanoTime(); } } else if (severity.compareTo(HighlightSeverity.WARNING) >= 0) { if (warningStamp == 0) { warningStamp = System.nanoTime(); } } else { if (otherStamp == 0) { otherStamp = System.nanoTime(); } } }