boolean (@Nullable PyExpression callee, @NotNull PyFunction function, @NotNull PyResolveContext resolveContext) { if (callee instanceof PyReferenceExpression && PyUtil.isInitMethod(function)) { final PsiPolyVariantReference classReference = ((PyReferenceExpression)callee).getReference(resolveContext); return Arrays .stream(classReference.multiResolve(false)) .map(ResolveResult::getElement) .anyMatch( element -> element instanceof PyClass && PyKnownDecoratorUtil.hasUnknownOrChangingReturnTypeDecorator((PyClass)element, resolveContext.getTypeEvalContext()) ); } return false; }