code: public static void setCurrentAnalysisContext(AnalysisContext analysisContext) {
          currentAnalysisContext.set(analysisContext);
          if (Global.getAnalysisCache() != null) {
              currentXFactory.set(new XFactory());
          }
      }
docs: Set the current analysis context for this thread.
  
  @param analysisContext
  the current analysis context for this thread