boolean (TextContent content) { PsiFile file = content.getContainingFile(); int textStart = content.textOffsetToFile(0); return file.getViewProvider().getContents().subSequence(0, textStart).chars().noneMatch(Character::isLetterOrDigit); }