ResolveResultList () { final ResolveResultList results = new ResolveResultList(); final TypeEvalContext context = myContext.getTypeEvalContext(); PyReferenceResolveProvider.EP_NAME.getExtensionList().stream() .filter(PyOverridingReferenceResolveProvider.class::isInstance) .map(provider -> provider.resolveName(myElement, context)) .forEach(results::addAll); return results; }