code: public static RichDiagnosticFormatter instance(Context context) {
          RichDiagnosticFormatter instance = context.get(RichDiagnosticFormatter.class);
          if (instance == null)
              instance = new RichDiagnosticFormatter(context);
          return instance;
      }
docs: Get the DiagnosticFormatter instance for this context.