@SuppressWarnings("unused")
    public static void applySkin(String filename) {
        Path skinPath;
        if (!filename.endsWith(Constants.SKINFILE_SUFFIX)) {
            skinPath = Constants.PROGRAM_SKINS_PATH.resolve(filename + Constants.SKINFILE_SUFFIX);
        } else {
            skinPath = Constants.PROGRAM_SKINS_PATH.resolve(filename);
        }

        if (model.applySkin(skinPath)) {
            new AfterApplySkinDialog();
        } else {
            showProblemMessage("Main.applySkin: Skin was not applied!");
        }
    }