question: public static void addListener ( final DiagnosticListener listener ) { if ( listener != null ) { LISTENERS . add ( listener ) ; } }
target:  Add the given listener to the those notified whenever a diagnostic occurs. Requests to add null are ignored.  Adding the same listener multiple times is the same as adding it once.