boolean (final @NotNull String value, final @NotNull String chars, final int start, final int end) { for (int i = start; i < end; i++) { if (chars.indexOf(value.charAt(i)) >= 0) { return true; } } return false; }