Checking for ``is PsiWhiteSpace`` is more robust.