final public function get_excludelists(string $plugindir) : array {
        $filters = [];

        if (!empty($plugindir)) {
            $plugindir .= "/";
        }

        foreach ($this->excludelistfolders as $folder) {
            $filters[] = html_writer::tag('directory', "{$plugindir}{$folder}", ['suffix' => '.php']);
        }

        foreach ($this->excludelistfiles as $file) {
            $filters[] = html_writer::tag('file', "{$plugindir}{$file}");
        }

        return $filters;
    }