private static boolean canBePatternVariableValue(@NotNull PsiElement element) {
    // can be leaf element! (ex. var a = 1 <-> var $a$ = 1)
    return !containsOnlyDelimiters(element.getText());
  }
private static boolean canBePatternVariableValue(@NotNull PsiElement element)