class GitUrlsPresenter {

    public void setup(final List<GitUrl> gitUrls) {

        gitUrlsByProtocol = gitUrls.stream().collect(toMap(GitUrl::getProtocol, identity()));

        selectedProtocol = gitUrlsByProtocol.containsKey(DEFAULT_SELECTED_PROTOCOL)
                ? DEFAULT_SELECTED_PROTOCOL
                : gitUrls.get(0).getProtocol();

        view.setupProtocols(gitUrls.stream().map(GitUrl::getProtocol).map(p -> new KieSelectOption(p, p)).collect(toList()),
                             selectedProtocol,
                             this::setSelectedProtocol);

        update();
    }

    @Inject public  GitUrlsPresenter(final View view,
                            final Event<NotificationEvent> notificationEventEvent,
                            final TranslationService translationService,
                            final Clipboard clipboard);

}