boolean (@NotNull LighterAST tree, @NotNull LighterASTNode node) { LighterASTNode typeElement = LightTreeUtil.firstChildOfType(tree, node, TYPE); if (typeElement != null) { LighterASTNode item = ContainerUtil.getOnlyItem(tree.getChildren(typeElement)); return item != null && item.getTokenType() instanceof IKeywordElementType; } return false; }