int (@NotNull ASTNode child) { IElementType elType = child.getElementType(); if (elType == JavaTokenType.DOUBLE_COLON) return ChildRole.DOUBLE_COLON; if (elType == JavaTokenType.IDENTIFIER) return ChildRole.REFERENCE_NAME; if (elType == JavaElementType.REFERENCE_EXPRESSION) return ChildRole.CLASS_REFERENCE; return ChildRole.EXPRESSION; }