class OnboardingManagerImpl extends ComponentSupport implements OnboardingManager {

  @Override
  public List<OnboardingItem> getOnboardingItems() {
    if (onboardingConfiguration.isEnabled()) {
      return onboardingItems.stream().filter(OnboardingItem::applies)
          .sorted(Comparator.comparingInt(OnboardingItem::getPriority)).collect(Collectors.toList());
    }
    return Collections.emptyList();
  }

  @Inject public  OnboardingManagerImpl(final Set<OnboardingItem> onboardingItems,
                               final OnboardingConfiguration onboardingConfiguration);

}