docs: private void arrangeCallbacks(Callback[] callbacks) {
          if (callbacks[0] instanceof CallerPrincipalCallback)
              return;
  
          int length = callbacks.length;
          for (int i = 0; i < length; i++) {
              if (callbacks[i] instanceof CallerPrincipalCallback) {
                  Callback callback = callbacks[0];
                  callbacks[0] = callbacks[i];
                  callbacks[i] = callback;
                  break;
              }
          }
      }