docs: @SuppressWarnings({"unchecked"})
      public synchronized ClassReflectionIndex getClassIndex(Class clazz) {
          try {
              ClassReflectionIndex index = classes.get(clazz);
              if (index == null) {
                  final SecurityManager sm = System.getSecurityManager();
                  if (sm == null) {
                      index = new ClassReflectionIndex(clazz, this);
                  } else {
                      index = AccessController.doPrivileged((PrivilegedAction<ClassReflectionIndex>) () -> new ClassReflectionIndex(clazz, this));
                  }
                  classes.put(clazz, index);
              }
              return index;
          } catch (Throwable e) {
              throw ServerLogger.ROOT_LOGGER.errorGettingReflectiveInformation(clazz, clazz.getClassLoader(), e);
          }
      }