Design patterns·The named ways it goes wrong
the method takes nine arguments, four of them are the same type, and you got two of them the wrong way round.
Long parameter list
Also calledtoo many parameters, parameter list smell
A signature with enough parameters that call sites become positional puzzles and mistakes stop being caught by types. It is usually a symptom rather than the problem: several parameters that always travel together are a missing object, and a flag among them is a missing second method. A builder or a parameter object addresses the readability; a smaller responsibility addresses the cause.