class MenuSessionImpl implements MenuSession {

    @Override
    public Optional<MenuItem> getItemByIndex(int index) {
        return Optional.ofNullable(itemsByIndex.get(index));
    }

    protected  MenuSessionImpl(MenuTemplate menuTemplate, MenuOpenProcessor openProcessor, Player owner, Consumer<Map<String, Object>> headerConsumer);

}