Which also takes into account hidden groups. Differential Revision: https://phabricator.kde.org/D10328