SONARJAVA-752 Fix issue in imports resolution