fix PsiPackageImpl.getCachedClassesByName race condition in dumb mode
fix database tests build?
use stubs when resolving in dumb mode
O(1) SortedList.isEmpty