Short answer, there is currently no way to avoid this.
Longer answer: Usually, passing an open value to a method should be marked as closed to avoid false positives. You should clarify the version of the java sonar plugin you are using.
This rule is based on the mechanism of symbolic execution and is limited by the boundaries of the method and as such, at that time there is no way to determine that calling this method of the utility will probably close the open resource.
Note that the java sonar command is working to get this limit gone.
source share