protected function getFeatureList($bundle)
    {
        $features = [];
        $manager =  $this->getFeatureManager();
        $modules = $this->getPackagesByBundle($bundle);

        foreach ($modules as $module_name) {
            $feature = $manager->loadPackage($module_name, true);
            $overrides = $manager->detectOverrides($feature);

            $state = $feature->getState();

            if (!empty($overrides) && ($feature->getStatus() != FeaturesManagerInterface::STATUS_NO_EXPORT)) {
                $state = FeaturesManagerInterface::STATE_OVERRIDDEN;
            }

            if ($feature->getStatus() != FeaturesManagerInterface::STATUS_NO_EXPORT) {
                $features[$feature->getMachineName()] = [
                    'name' => $feature->getName(),
                    'machine_name' => $feature->getMachineName(),
                    'bundle_name' => $feature->getBundle(),
                    'status' => $manager->statusLabel($feature->getStatus()),
                    'state' => ($state != FeaturesManagerInterface::STATE_DEFAULT) ? $manager->stateLabel($state) : '',
                ];
            }
        }

        return $features;
    }