PsiElement (PsiElement startElement) { PsiElement el = PsiTreeUtil.nextLeaf(PsiTreeUtil.getDeepestFirst(startElement)); while (el != null) { if (isBlockCell(el)) { return el; } el = PsiTreeUtil.nextLeaf(el); } return null; }