PsiElement (@NotNull PsiElement element) { PsiElement result = PsiTreeUtil.skipSiblingsForward(element, PsiWhiteSpace.class); if (result == null) { result = PsiTreeUtil.skipSiblingsBackward(element, PsiWhiteSpace.class); if (result == null) { result = element; } } return result; }