public static Language getNotAnyLanguage(ASTNode node) {
    if (node == null) return Language.ANY;

    Language lang = node.getElementType().getLanguage();
    return lang == Language.ANY ? getNotAnyLanguage(node.getTreeParent()) : lang;
  }
public static Language getNotAnyLanguage(ASTNode node)