public function resetToolsVisiblity(
        User $user = null,
        Workspace $workspace = null,
        $type = 0
    ) {
        $orderedTools = $this->orderedToolRepo->findBy(
            ['user' => $user, 'workspace' => $workspace, 'type' => $type]
        );

        foreach ($orderedTools as $orderedTool) {
            if ($user) {
                $orderedTool->setVisibleInDesktop(false);
            }

            $this->om->persist($orderedTool);
        }

        $this->om->flush();
    }