class StatDisplayUtils {

    static void returnToMenu(GazePlay gazePlay, StatsContext statsContext) {
        statsContext.getRoot().setCursor(Cursor.WAIT); // Change cursor to wait style

        BackgroundMusicManager.getInstance().restorePlaylist();
        BackgroundMusicManager.getInstance().previous();
        gazePlay.onReturnToMenu();

        statsContext.getRoot().setCursor(Cursor.DEFAULT); // Change cursor to default style
    }

}