Iterable<LocalQuickFix> getCreateMemberFromUsageFixes(PyType type, PsiReference reference, String refText) {
    List<LocalQuickFix> result = new ArrayList<>();
    PsiElement element = reference.getElement();
    if (type instanceof PyClassTypeImpl) {
      PyClass cls = ((PyClassType)type).getPyClass();
      if (!PyBuiltinCache.getInstance(element).isBuiltin(cls)) {
        if (element.getParent() instanceof PyCallExpression) {
          result.add(new AddMethodQuickFix(refText, cls.getName(), true));
        }
        else if (!(reference instanceof PyOperatorReference)) {
          result.add(new AddFieldQuickFix(refText, "None", type.getName(), true));
        }
      }
    }
    else if (type instanceof PyModuleType) {
      PyFile file = ((PyModuleType)type).getModule();
      LocalQuickFix createClassQuickFix = getCreateClassFix(refText, element);
      if (createClassQuickFix != null) {
        result.add(createClassQuickFix);
      }
      else {
        result.add(new AddFunctionQuickFix(refText, file.getName()));
      }
    }
    return result;
  }
Iterable<LocalQuickFix> getCreateMemberFromUsageFixes(PyType type, PsiReference reference, String refText)