SONAR-4996 Improve Java migrations performance