fun createNotebookController()

in build-logic/generatorlegacybuild/src/main/kotlin/karakum/vscode/Converter.kt [556:578]


            fun createNotebookController(
                id: String,
                notebookType: String,
                label: String,
                handler: (
                    cells: ReadonlyArray<NotebookCell>,
                    notebook: NotebookDocument,
                    controller: NotebookController,
                ) -> PromiseLike<Void> = definedExternally,
            ): NotebookController
            """.trimIndent()
    }

    val name = source
        .substringBefore("(")
        .substringBefore("<")
        .removeSuffix("?")
        .ifEmpty { "invoke" }

    val additionalInterfaceMatch = OPTIONS_REGEX
        .find(source)

    if (additionalInterfaceMatch != null) {