Language (ASTNode node) { if (node == null) return Language.ANY; final Language lang = node.getElementType().getLanguage(); return lang == Language.ANY ? getNotAnyLanguage(node.getTreeParent()) : lang; }