SONARJAVA-438 Remove some deprecated code

* Finally - org.sonar.api.resources.JavaMethod and
  org.sonar.api.resources.JavaClass are not used.

* This also should reduce memory consumption.