@SuppressWarnings("rawtypes")
  public static @NotNull SettingsCategory getCategory(@NotNull Class<? extends PersistentStateComponent> componentClass) {
    PluginDescriptor plugin = PluginManager.getPluginByClass(componentClass);
    if (plugin != null) {
      getPluginCategory(componentClass, plugin);
    }
    return getFromAnnotationOrDefault(componentClass, SettingsCategory.OTHER);
  }
@SuppressWarnings("rawtypes")
  public static @NotNull SettingsCategory getCategory(@NotNull Class<? extends PersistentStateComponent> componentClass)