void () { for ( EditorColorsScheme scheme = this; scheme instanceof DelegateColorScheme delegateColorScheme; scheme = delegateColorScheme.getDelegate() ) { if (scheme instanceof MyColorSchemeDelegate myColorSchemeDelegate) { myColorSchemeDelegate.updateDelegate(); } } }