int (byte @NotNull [] ints, int start, int end) { int flags = 0; for (int i = start; i < end; i++) { byte c = ints[i]; if (c == (byte)'\r') flags |= CR; if (c == (byte)'\n') flags |= LF; if (c < 0) flags |= WIDE; } return flags; }