JDR: Eliminate another usage of LazyJavaClassResolver#resolveClassByFqName()

Refactor Java scopes:
Use abstract functions instead of "is" checks in LazyJavaMemberScope
Move some code to derived classes
JDR: Remove LazyJavaClassResolver#resolveClassByFqName()