Invoked when a problem is found.paramdiagnostic a diagnostic representing the problem that was foundthrowsNullPointerException if the diagnostic argument is {@code null} and the implementation cannot handle {@code null} arguments