Frostman/kotlin — comment on commit abd2cb069f88d311eab904a452db051f07bd6dbd
File:  line 0
By goodwinnk:

I think that copying JetClassObjectTreeNode from JetClassOrObjectTreeNode is not a best decision here. For example canRepresent can be reused after weakened first parameter to PsiElement. getChildrenImpl methods in both classes are also look very same.

Can you call getObjectDeclaration() and reuse existing code somehow?