Source:
<code><START> private static Value regexpReplace(SessionLocal session, String input, String regexp, String replacement, int position, int occurrence, String regexpMode) { <END> Mode mode = session.getMode(); if (mode.regexpReplaceBackslashReferences) { if ((replacement.indexOf('\\') >= 0) || (replacement.indexOf('$') >= 0)) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < replacement.length(); i++) { char c = replacement.charAt(i); if (c == '$') { sb.append('\\'); } else if (c == '\\' && ++i < replacement.length()) { c = replacement.charAt(i); sb.append(c >= '0' && c <= '9' ? '$' : '\\'); } sb.append(c); } replacement = sb.toString(); } } boolean isInPostgreSqlMode = Mode.ModeEnum.PostgreSQL.equals(mode.getEnum()); int flags = makeRegexpFlags(regexpMode, isInPostgreSqlMode); if (isInPostgreSqlMode && ( regexpMode == null || regexpMode.isEmpty() || !regexpMode.contains("g"))) { occurrence = 1; } try { Matcher matcher = Pattern.compile(regexp, flags).matcher(input).region(position - 1, input.length()); if (occurrence == 0) { return ValueVarchar.get(matcher.replaceAll(replacement), session); } else { for(int i = 0; i < occurrence; i++) { matcher.find(); } int startIndex = matcher.start(); return ValueVarchar.get(input.substring(0, startIndex) + input.substring(startIndex).replaceFirst(regexp, replacement), session); } } catch (PatternSyntaxException e) { throw DbException.get(ErrorCode.LIKE_ESCAPE_ERROR_1, e, regexp); } catch (StringIndexOutOfBoundsException | IllegalArgumentException e) { throw DbException.get(ErrorCode.LIKE_ESCAPE_ERROR_1, e, replacement); } }</code><technical_language>Please, indent wrapped lines 8 additional spaces. align arguments, alignment breaks code style checks</technical_language>

Target:
private static Value regexpReplace(SessionLocal session, String input, String regexp, String replacement, int position, int occurrence, String regexpMode) { Mode mode = session.getMode(); if (mode.regexpReplaceBackslashReferences) { if ((replacement.indexOf('\\') >= 0) || (replacement.indexOf('$') >= 0)) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < replacement.length(); i++) { char c = replacement.charAt(i); if (c == '$') { sb.append('\\'); } else if (c == '\\' && ++i < replacement.length()) { c = replacement.charAt(i); sb.append(c >= '0' && c <= '9' ? '$' : '\\'); } sb.append(c); } replacement = sb.toString(); } } boolean isInPostgreSqlMode = Mode.ModeEnum.PostgreSQL.equals(mode.getEnum()); int flags = makeRegexpFlags(regexpMode, isInPostgreSqlMode); if (isInPostgreSqlMode && ( regexpMode == null || regexpMode.isEmpty() || !regexpMode.contains("g"))) { occurrence = 1; } try { Matcher matcher = Pattern.compile(regexp, flags).matcher(input).region(position - 1, input.length()); if (occurrence == 0) { return ValueVarchar.get(matcher.replaceAll(replacement), session); } else { StringBuffer sb = new StringBuffer(); int index = 1; while (matcher.find()) { if (index == occurrence) { matcher.appendReplacement(sb, replacement); break; } index++; } matcher.appendTail(sb); return ValueVarchar.get(sb.toString(), session); } } catch (PatternSyntaxException e) { throw DbException.get(ErrorCode.LIKE_ESCAPE_ERROR_1, e, regexp); } catch (StringIndexOutOfBoundsException | IllegalArgumentException e) { throw DbException.get(ErrorCode.LIKE_ESCAPE_ERROR_1, e, replacement); } }