protected function getPlugin($handle)
{
$plugin = $this->getPluginService()->getPlugin($handle, false);
if (!$plugin) {
$this->addError(Craft::t("Plugin {handle} could not be found, make sure it's files are located in the plugins folder", ['handle' => $handle]));
}
return $plugin;
}