override fun applyEditorTo()

in src/main/kotlin/com/pestphp/pest/configuration/PestTestRunConfigurationEditor.kt [69:84]


    override fun applyEditorTo(settings: PestRunConfiguration) {
        parentEditor.javaClass.declaredMethods.find { it.name == "applyEditorTo" }!!.let {
            it.isAccessible = true
            try {
                it.invoke(parentEditor, settings)
            } catch (exception: InvocationTargetException) {
                // In case the method throws a read only error (happens in code with me) we ignore it.
                if (exception.cause is ReadOnlyModificationException) {
                    return@let
                }

                throw exception
            }
        }
        doApply(settings)
    }