boolean (@NotNull PsiElement element) { final ASTNode node = element.getNode(); if ((node != null && node.getElementType() == RegExpTT.CHARACTER) || (element instanceof RegExpChar && ((RegExpChar)element).getType() == RegExpChar.Type.CHAR)) { return false; } return true; }