static void closeDialogsAndPanels() {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
DockableWindowManager dwm = jEdit.getActiveView().getDockableWindowManager();
dwm.hideDockableWindow("openfilefastdockable");
}
});
for (JDialog dialog : dialogs.values()) {
dialog.dispose();
}