private function getMasterPermissions(array $permissions, $subject, $field)
    {
        $master = $this->getMaster($subject);

        if (null !== $subject && null !== $master && $subject !== $master) {
            if (null !== $field) {
                $permissions = $this->buildMasterFieldPermissions($subject, $permissions);
            }

            $subject = $master;
            $field = null;
        }

        return [$permissions, $subject, $field];
    }