docs: static public void logError(String msg, Exception e) {
          AnalysisContext currentAnalysisContext2 = currentAnalysisContext();
          if (currentAnalysisContext2 == null) {
              if (e instanceof NoSuchBugPattern) {
                  return;
              }
              /*
              if (false && SystemProperties.ASSERTIONS_ENABLED) {
                  AssertionError e2 = new AssertionError("Exception logged with no analysis context");
                  e2.initCause(e);
                  throw e2;
              }
               */
              e.printStackTrace(System.err);
              return;
          }
          if (e instanceof MissingClassException) {
              reportMissingClass(((MissingClassException) e).getClassNotFoundException());
              return;
          }
          if (e instanceof edu.umd.cs.findbugs.classfile.MissingClassException) {
              reportMissingClass(((edu.umd.cs.findbugs.classfile.MissingClassException) e).toClassNotFoundException());
              return;
          }
  
          RepositoryLookupFailureCallback lookupFailureCallback = currentAnalysisContext2.getLookupFailureCallback();
          if (lookupFailureCallback != null) {
              lookupFailureCallback.logError(msg, e);
          }
      }