interface Person { fun getFather(): Person? fun getName(): String? } class FatherNameDisplayer { fun display(person: Person): String { val father = person.getFather() if (father != null) { val name = father.getName() return name //HERE!!! } return "Name not known" } }