@NotNull
  private static HighlightInfo.Builder createIncompatibleReturnTypeMessage(@NotNull PsiMethod method,
                                                             @NotNull PsiMethod superMethod,
                                                             @NotNull PsiType substitutedSuperReturnType,
                                                             @NotNull PsiType returnType,
                                                             @NotNull @Nls String detailMessage,
                                                             @NotNull TextRange textRange, @Nullable Ref<? super String> descriptionH) {
    String description = MessageFormat.format("{0}; {1}", createClashMethodMessage(method, superMethod, true), detailMessage);
    if (descriptionH != null) {
      descriptionH.set(description);
    }
    HighlightInfo.Builder errorResult =
      HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR).range(textRange).descriptionAndTooltip(description);
    if (method instanceof LightRecordMethod) {
      for (IntentionAction fix :
        HighlightFixUtil.getChangeVariableTypeFixes(((LightRecordMethod)method).getRecordComponent(), substitutedSuperReturnType)) {
        errorResult.registerFix(fix, null, null, null, null);
      }
    }
    else {
      IntentionAction action = QuickFixFactory.getInstance().createMethodReturnFix(method, substitutedSuperReturnType, false);
      errorResult.registerFix(action, null, null, null, null);
    }
    IntentionAction action1 = QuickFixFactory.getInstance().createSuperMethodReturnFix(superMethod, returnType);
    errorResult.registerFix(action1, null, null, null, null);
    PsiClass returnClass = PsiUtil.resolveClassInClassTypeOnly(returnType);
    if (returnClass != null && substitutedSuperReturnType instanceof PsiClassType) {
      IntentionAction action =
        QuickFixFactory.getInstance().createChangeParameterClassFix(returnClass, (PsiClassType)substitutedSuperReturnType);
      errorResult.registerFix(action, null, null, null, null);
    }

    return errorResult;
  }
@NotNull
  private static HighlightInfo.Builder createIncompatibleReturnTypeMessage(@NotNull PsiMethod method,
                                                             @NotNull PsiMethod superMethod,
                                                             @NotNull PsiType substitutedSuperReturnType,
                                                             @NotNull PsiType returnType,
                                                             @NotNull @Nls String detailMessage,
                                                             @NotNull TextRange textRange, @Nullable Ref<? super String> descriptionH)