private static void reportAssignmentProblem(PsiAssignmentExpression assignment,
                                              ProblemsHolder holder) {
    holder.registerProblem(assignment.getLExpression(),
                           JavaBundle.message("inspection.unused.assignment.problem.descriptor3",
                                              Objects.requireNonNull(assignment.getRExpression()).getText()),
                           new RemoveAssignmentFix()
    );
  }
private static void reportAssignmentProblem(PsiAssignmentExpression assignment,
                                              ProblemsHolder holder)