private static void setLookAndFeel(LookAndFeel lookAndFeel) {
        try {
            UIManager.setLookAndFeel(lookAndFeel);
        } catch (UnsupportedLookAndFeelException ex) {
            Logger.getLogger(Dialogs.class.getName()).log(SEVERE, "Could not restore the look and feel after file chooser dialog: {0}", ex);
        }
    }