IDEA shows a warning for this line that it can be simplified.