docs: @Nullable
      @SuppressWarnings("unchecked")
      protected <T extends JavaElement> ActiveElements<T> popIfActive() {
          return (ActiveElements<T>) (!activations.isEmpty() && activations.peek().depth == depth ? activations.pop() :
              null);
      }