PyTypedElement (PyCustomMember member, PyClass clazz, PsiElement context, PsiElement resolveTarget, Function<? super PsiElement, ? extends PyType> typeCallback, PyCustomMemberTypeInfo<?> customTypeInfo, boolean resolveToInstance) { return new MyInstanceElement(member, clazz, context, resolveTarget, typeCallback, customTypeInfo, resolveToInstance); }