@NotNull
  @Override
  protected String buildErrorString(Object... infos) {
    return switch ((ClassType)infos[0]) {
      case ANONYMOUS_CLASS -> InspectionGadgetsBundle.message("return.of.anonymous.class.problem.descriptor");
      case LOCAL_CLASS -> InspectionGadgetsBundle.message("return.of.local.class.problem.descriptor", ((PsiClass)infos[1]).getName());
      case INNER_CLASS -> InspectionGadgetsBundle.message("return.of.inner.class.problem.descriptor", ((PsiClass)infos[1]).getName());
    };
  }
@NotNull
  @Override
  protected String buildErrorString(Object... infos)