boolean (@NotNull PsiElement element) { // can be leaf element! (ex. var a = 1 <-> var $a$ = 1) if (element instanceof LeafElement) { return true; } while (!(element instanceof LeafElement) && element != null) { element = SkippingHandler.getOnlyNonWhitespaceChild(element); } return element != null; }