code: public void invalidate(TemplateClass parent) {
          if (mode().isProd()) return;
          Set<TemplateClass> children = extendMap.get(parent);
          if (null == children) return;
          for (TemplateClass child : children) {
              invalidate(child);
              child.reset();
          }
      }
docs: called to invalidate all template class which extends the parent