public boolean isMandatory(){
  return flags.contains(DiagnosticFlag.MANDATORY);
}

public boolean isMandatory ( ) { return flags . contains ( DiagnosticFlag . MANDATORY ) ; }
check whether or not this diagnostic is required to be shown .
