void () { try { ApplicationManager.getApplication().runWriteAction(() -> FileDocumentManager.getInstance().saveDocument(myDocument)); if (mySceneBuilder != null && mySceneBuilder.reload()) { return; } removeSceneBuilder(); mySceneBuilder = SceneBuilderUtil.create(new File(myFile.getPath()).toURI().toURL(), myProject, this); myPanel.add(mySceneBuilder.getPanel(), SCENE_CARD); myLayout.show(myPanel, SCENE_CARD); myChangeListener.start(); } catch (Throwable e) { showErrorPage(e); } }