@SuppressWarnings("unchecked")
    public static void injectDependency(PluginManager pluginManager, String plugin, String depend) {
        if (DEPENDENCY_GRAPH_FIELD == null || !(pluginManager instanceof SimplePluginManager)) {
            return; // fail silently
        }

        try {
            MutableGraph<String> graph = (MutableGraph<String>) DEPENDENCY_GRAPH_FIELD.get(pluginManager);
            graph.putEdge(plugin, depend);
        } catch (Exception e) {
            // ignore
        }
    }
Injects a dependency relationship into the plugin manager.

@param plugin the plugin
@param depend the plugin being depended on
bukkit/src/main/java/me/lucko/luckperms/bukkit/util/PluginManagerUtil.java