SONARJAVA-160 Factorize common code between two methods
SONARJAVA-160 Remove dependency on ProjectClasspath