Revert "remove plugins depends function"

This reverts commit 856b712915ae3c5e0c248852e7ee2464a54d2b5e.