docs: private static Class<?>[] getCallStackViaStackWalker() {
          try {
              //    // Implement the following via reflection, for JDK7 compatibility:
              //    List<Class<?>> stackFrameClasses = new ArrayList<>();
              //    StackWalker.getInstance(Option.RETAIN_CLASS_REFERENCE)
              //            .forEach(sf -> stackFrameClasses.add(sf.getDeclaringClass()));
  
              final Class<?> consumerClass = Class.forName("java.util.function.Consumer");
              final List<Class<?>> stackFrameClasses = new ArrayList<>();
              final Class<?> stackWalkerOptionClass = Class.forName("java.lang.StackWalker$Option");
              final Object retainClassReference = Class.forName("java.lang.Enum")
                      .getMethod("valueOf", Class.class, String.class)
                      .invoke(null, stackWalkerOptionClass, "RETAIN_CLASS_REFERENCE");
              final Class<?> stackWalkerClass = Class.forName("java.lang.StackWalker");
              final Object stackWalkerInstance = stackWalkerClass.getMethod("getInstance", stackWalkerOptionClass)
                      .invoke(null, retainClassReference);
              final Method stackFrameGetDeclaringClassMethod = Class.forName("java.lang.StackWalker$StackFrame")
                      .getMethod("getDeclaringClass");
              stackWalkerClass.getMethod("forEach", consumerClass).invoke(stackWalkerInstance, //
                      // InvocationHandler proxy for Consumer<StackFrame>
                      Proxy.newProxyInstance(consumerClass.getClassLoader(), new Class[] { consumerClass },
                              new InvocationHandler() {
                                  @Override
                                  public Object invoke(final Object proxy, final Method method, final Object[] args)
                                          throws Throwable {
                                      // Consumer<StackFrame> has only one method: void accept(StackFrame)
                                      final Class<?> declaringClass = (Class<?>) stackFrameGetDeclaringClassMethod
                                              .invoke(args[0]);
                                      stackFrameClasses.add(declaringClass);
                                      return null;
                                  }
                              }));
              return stackFrameClasses.toArray(new Class<?>[0]);
          } catch (Exception | LinkageError e) {
              return null;
          }
      }