@NotNull
  private List<RatedResolveResult> getElementsNamed(@NotNull String name, boolean resolveImportElement) {
    String asName = getAsName();
    if (asName != null) {
      if (!Objects.equals(name, asName)) {
        return Collections.emptyList();
      }
      if (resolveImportElement) {
        return multiResolve();
      }
      return ResolveResultList.to(this);
    }
    else {
      final QualifiedName qName = getImportedQName();
      if (qName == null || qName.getComponentCount() == 0 || !qName.getComponents().get(0).equals(name)) {
        return Collections.emptyList();
      }
      if (qName.getComponentCount() == 1) {
        if (resolveImportElement) {
          return multiResolve();
        }
        return ResolveResultList.to(this);
      }
      return ResolveResultList.to(createImportedModule(name));
    }
  }
@NotNull
  private List<RatedResolveResult> getElementsNamed(@NotNull String name, boolean resolveImportElement)