public function addMetaBoxes()
    {
        // Publish
        add_meta_box(
            'modularity-mb-editor-publish',
            __('Save modules', 'modularity'),
            function () {
                include MODULARITY_TEMPLATE_PATH . 'editor/modularity-publish.php';
            },
            $this->screenHook,
            'side'
        );

        // Modules
        add_meta_box(
            'modularity-mb-modules',
            __('Enabled modules', 'modularity'),
            function () {
                $enabled = \Modularity\ModuleManager::$enabled;
                $available = \Modularity\ModuleManager::$available;
                $deprecated = \Modularity\ModuleManager::$deprecated;

                $modules = array();
                if (is_array($enabled) && !empty($enabled)) {
                    foreach ($enabled as $module) {
                        if (isset($available[$module]) && !in_array($module, $deprecated)) {
                            $modules[$module] = apply_filters('Modularity/Editor/SidebarIncompability', $available[$module], $module);
                        }
                    }
                }

                uasort($modules, function ($a, $b) {
                    return $a['labels']['name'] > $b['labels']['name'];
                });

                include MODULARITY_TEMPLATE_PATH . 'editor/modularity-enabled-modules.php';
            },
            $this->screenHook,
            'side'
        );

        $this->addSidebarsMetaBoxes();
    }