Added possibility to access plugin by type if type exists