LighterASTNode (@NotNull LighterAST tree, @Nullable LighterASTNode node) { while (node != null) { IElementType type = node.getTokenType(); if (type != PARENTH_EXPRESSION && type != TYPE_CAST_EXPRESSION) break; if (type == TYPE_CAST_EXPRESSION && isPrimitiveCast(tree, node)) break; node = findExpressionChild(tree, node); } return node; }