private static void loadSettings() {
        if (!Files.exists(Utils.getSettingsFile())) {
            createDefaultSettingsFile();
        }

        int tries = 1;

        while (settings == null && tries <= 10) {
            try {
                settings = GSON.fromJson(FileUtils.readFileToString(Utils.getSettingsFile().toFile()), Settings.class);
            } catch (IOException e) {
                e.printStackTrace();
            }

            tries++;
        }

        if (settings == null) {
            System.err.println("Error loading settings from " + Utils.getSettingsFile().toAbsolutePath());
            System.exit(1);
        }
    }