protected function getMethodKey()
    {
        // Switch if `resources/.method` contains a file
        $methodFilePath = $this->getMethodFilePath();
        if (file_exists($methodFilePath) && is_readable($methodFilePath)) {
            return trim(file_get_contents($methodFilePath));
        }

        // Switch based on SS_VENDOR_METHOD arg
        $method = getenv(VendorPlugin::METHOD_ENV);
        if ($method) {
            return $method;
        }

        // Default method
        return VendorPlugin::METHOD_DEFAULT;
    }