private static int getSingleAssignmentIndex(@NotNull List<? extends PsiStatement> statements) {
    return getSingleStatementIndex(statements, statement -> ExpressionUtils.getAssignment(statement) != null);
  }
private static int getSingleAssignmentIndex(@NotNull List<? extends PsiStatement> statements)