Is there any way to declare a public enum in Java, that can be accessed by at least 2 classes without duplicating the code??