java inspections: use modern ReadAction instead of variable sharing