Issue #3229714 by paul121: Correct visibility of getPluginDefinition function in ContextAwarePluginTrait