private boolean isBeforeVariableOnSameLine(@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();
  }
private boolean isBeforeVariableOnSameLine(@Nullable PsiStatement parentStatement)