int (@NotNull ASTNode child) { IElementType elType = child.getElementType(); if (elType == JavaTokenType.ARROW) return ChildRole.ARROW; if (elType == JavaElementType.PARAMETER_LIST) return ChildRole.PARAMETER_LIST; if (elType == JavaElementType.CODE_BLOCK) return ChildRole.LBRACE; return ChildRole.EXPRESSION; }