void (@NotNull CharSequence cs, int start, int end, char @NotNull [] dest, int destPos) { if (cs instanceof String) { ((String)cs).getChars(start, end, dest, destPos); } else if (cs instanceof ByteArrayCharSequence) { ((ByteArrayCharSequence)cs).getChars(start, end, dest, destPos); } else { ((CompositeNode)cs).getChars(start, end, dest, destPos); } }