private static boolean isXmlBlock(@NotNull Block block) {
    if (block instanceof TemplateXmlTagBlock || block instanceof TemplateXmlBlock) return true;
    if (block instanceof ASTBlock) {
      ASTNode node = ((ASTBlock)block).getNode();
      return node != null && node.getPsi().getLanguage().isKindOf(XMLLanguage.INSTANCE);
    }
    return false;
  }
private static boolean isXmlBlock(@NotNull Block block)