@Nullable
 public static String getUnescapedLeafText(PsiElement element, boolean strict) {
   String unescaped = element.getCopyableUserData(LeafPatcher.UNESCAPED_TEXT);
   if (unescaped != null) {
     return unescaped;
   }
   if (!strict && element.getFirstChild() == null) {
     return element.getText();
   }
   return null;
 }