void (ActionEvent e) { if (mySelectedFramework instanceof JavaTestFramework) { ((JavaTestFramework)mySelectedFramework).setupLibrary(myTargetModule) .onSuccess(__ -> myFixLibraryPanel.setVisible(false)); } else { OrderEntryFix.addJarToRoots(mySelectedFramework.getLibraryPath(), myTargetModule, null); myFixLibraryPanel.setVisible(false); } }