There is a method in the collector
fun collectEnabledAccountsGroupByLogin(selectedGuid: String): List<AccountSelectItem> { return RealmManager.realm.where(Account::class.java).equalTo(KEY_ENABLED, true) .findAllSorted(arrayOf(KEY_LOGINGUID, KEY_NAME), arrayOf(Sort.ASCENDING, Sort.ASCENDING)) .map { AccountSelectItem(it.guid, it.name, it.getCurrencyCode(), selectedGuid == it.guid) } I want to transfer my mapping to the presenter. How can you do it correctly?