PsiElement (PsiElement element) { PsiElement sibling = element.getNextSibling(); while (sibling != null && isWhiteSpaceOrNls(sibling)) { if (PsiUtil.isNewLine(sibling)) { return sibling; } sibling = sibling.getNextSibling(); } return null; }