static HighlightInfo.Builder checkReturnFromSwitchExpr(@NotNull PsiReturnStatement statement) {
    if (PsiImplUtil.findEnclosingSwitchExpression(statement) != null) {
      String message = JavaErrorBundle.message("return.outside.switch.expr");
      HighlightInfo.Builder info = HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR).range(statement).descriptionAndTooltip(message);
      if (statement.getReturnValue() != null) {
        var action = new ReplaceWithYieldFix(statement);
        info.registerFix(action, null, null, null, null);
      }
      return info;
    }

    return null;
  }
static HighlightInfo.Builder checkReturnFromSwitchExpr(@NotNull PsiReturnStatement statement)