Get existing plugin or return null if not present. Only first matching plugin is returned.
search for parent PluginManager plugins
condition for the plugin