MergeRequestProcessor () { return new MergeRequestProcessor(myProject) { @Override public void closeDialog() { myWrapper.close(); } @Override protected void setWindowTitle(@NotNull @NlsContexts.DialogTitle String title) { myWrapper.setTitle(title); } @Nullable @Override protected JRootPane getRootPane() { RootPaneContainer container = ObjectUtils.tryCast(myWrapper.getWindow(), RootPaneContainer.class); return container != null ? container.getRootPane() : null; } }; }