void (@NotNull AnActionEvent e) { Sdk selectedSdk = mySelectedSdkOverride; JComponent parent = myParentOverride; java.util.function.Consumer<? super Sdk> callback = myCallbackOverride; if (callback == null || parent == null) return; actionPerformed(selectedSdk, parent, callback); }