int (@NotNull ASTNode child) { assert child.getTreeParent() == this : child; IElementType childType = child.getElementType(); if (childType == JavaTokenType.COMMA) return ChildRole.COMMA; if (childType == JavaElementType.JAVA_CODE_REFERENCE) return ChildRole.REFERENCE_IN_LIST; return ChildRoleBase.NONE; }