Set<MetricEvent> (@NotNull Project project) { TaskManager taskManager = TaskManager.getManager(project); LocalTask activeTask = taskManager.getActiveTask(); return Collections.singleton( TASKS_COMBO_ON_TOOLBAR.metric(SwitchTaskAction.isTaskManagerComboInToolbarEnabledAndVisible(activeTask, taskManager))); }