@Override
  public ResolveResult @NotNull [] multiResolve(boolean incompleteCode) {
    final PyStringLiteralExpression element = getElement();
    final String name = element.getStringValue();
    final PyFile file = (PyFile)element.getContainingFile();

    final List<RatedResolveResult> resolveResults = file.multiResolveName(name);

    final boolean onlyDunderAlls = StreamEx
      .of(resolveResults)
      .map(RatedResolveResult::getElement)
      .allMatch(resolvedElement -> resolvedElement instanceof PyTargetExpression &&
                                   PyNames.ALL.equals(((PyTargetExpression)resolvedElement).getName()));

    if (onlyDunderAlls) return ResolveResult.EMPTY_ARRAY;

    return resolveResults.toArray(RatedResolveResult.EMPTY_ARRAY);
  }
@Override
  public ResolveResult @NotNull [] multiResolve(boolean incompleteCode)