Initial query for SuggestModal

Sometimes you need to provide an initial query inside SuggestModal or FuzzySuggestModal

Currently I am using the following workaround

class MyModal<T> extends SuggestModal<T> {
    constructor(private initialQuery?: string) {

    onOpen(): {
        if (this.initialQuery) {
            this.inputEl.value = this.initialQuery;
            this.inputEl.dispatchEvent(new InputEvent("input"));

But I consider this trick with inputElement as a fragile dirty hack and it would be much better if this is supported by Obsidian API directly such as

export abstract class SuggestModal<T> extends Modal implements ISuggestOwner<T> {

     * @public
    getInitialQuery(): string | null;