@NotNull
 @Override
 public Collection<DeclarationDescriptor> getAllDescriptors() {
   if (allDescriptors == null) {
     allDescriptors = substitute(workerScope.getAllDescriptors());
   }
   return allDescriptors;
 }
 @NotNull
 @Override
 public Collection<DeclarationDescriptor> getAllDescriptors() {
   if (allDescriptors == null) {
     allDescriptors = new HashSet<DeclarationDescriptor>();
     for (JetScope scope : scopeChain) {
       allDescriptors.addAll(scope.getAllDescriptors());
     }
   }
   return allDescriptors;
 }