private static boolean isSuitable(@NotNull String chars, char c) {
    for (int i = 0; i < chars.length(); i++) {
      if (c == chars.charAt(i)) return true;
    }
    return false;
  }
private static boolean isSuitable(@NotNull String chars, char c)