code: public static Class getClassingClass(int offset){
          Class[] context = ClassContext.INSTANCE.getClassContext();
          offset += 2;
          return context.length>offset ? context[offset] : null;
      }
docs: returns the calling class.
  
  offset 0 returns class who is calling this method
  offset 1 returns class who called your method
  and so on