package hu.webarticum.treeprinter;

public class UnicodeMode {
    
	private static boolean enabled = true;
    
	public static void setUnicodeAsDefault(boolean enabled) {
        UnicodeMode.enabled = enabled;
    }

	public static boolean isUnicodeDefault() {
        return enabled;
    }
    
}

package hu.webarticum.treeprinter;

public final class UnicodeMode {
    
	private static boolean enabled = true;
	
	private UnicodeMode() {
		// static class
	}
    
	public static void setUnicodeAsDefault(boolean enabled) {
        UnicodeMode.enabled = enabled;
    }

	public static boolean isUnicodeDefault() {
        return enabled;
    }
    
}

Make UnicodeMode a static class