boolean (@Nullable PsiStatement parentStatement) { return parentStatement != null && parentStatement.getTextRange().getStartOffset() == myPosition.getTextRange().getStartOffset() && JBIterable.generate(parentStatement, PsiElement::getNextSibling) .takeWhile(e -> !e.textContains('\n')) .skip(1) .filter(PsiStatement.class) .isNotEmpty(); }