code: private static void formatElseIfClauseWithNoDependencies(
        IfThenPair<?> condition, FormattingContext ctx) {
      ctx.append(" else if (").appendOutputExpression(condition.predicate).append(") ");
      try (FormattingContext ignored = ctx.enterBlock()) {
        ctx.appendAll(condition.consequent);
      }
    }
docs: When the predicate of an {@code else if} clause is representable as a single expression, format
  it directly as an {@code else if} clause.