Issue #2939925 by jibran, tim.plunkett, yo30: Add a getPluginDependencies() method to \Drupal\Core\Plugin\PluginDependencyTrait