### Question:
ReflectionUtils { public static boolean isCreativeContainer(Class<? extends Container> containerClass) { try { return CreativeScreen.class.equals(containerClass.getEnclosingClass()); } catch (Exception e) { throw new RuntimeException( "WorldDownloader: Couldn't check if \"" + containerClass + "\" was the creative inventory!", e); } }  static Field findField(Class<?> typeOfClass, Class<?> typeOfField); static T findAndGetPrivateField(Object object, Class<T> typeOfField); static void findAndSetPrivateField(Object object, Class<T> typeOfField,
			T value); static T findAndGetPrivateField(K object, Class<K> typeOfObject,
			Class<T> typeOfField); static void findAndSetPrivateField(K object, Class<K> typeOfObject,
			Class<T> typeOfField, T value); static boolean isCreativeContainer(Class<? extends Container> containerClass); @Deprecated static Field stealField(Class<?> typeOfClass, Class<?> typeOfField); @Deprecated static T stealAndGetField(Object object, Class<T> typeOfField); @SuppressWarnings("unchecked") @Deprecated static void stealAndSetField(Object object, Class<T> typeOfField,
			Object value); @SuppressWarnings("unchecked") @Deprecated static T stealAndGetField(Object object, Class<?> typeOfObject,
			Class<T> typeOfField); @SuppressWarnings("unchecked") @Deprecated static void stealAndSetField(Object object, Class<?> typeOfObject,
			Class<?> typeOfField, Object value);  }### Answer:
@Test public void testIsCreativeContainer() { PlayerEntity player = mock(PlayerEntity.class); Container creativeInventory = new CreativeScreen(player).getContainer(); assertTrue(ReflectionUtils.isCreativeContainer(creativeInventory.getClass())); assertFalse(ReflectionUtils.isCreativeContainer(PlayerContainer.class)); assertFalse(ReflectionUtils.isCreativeContainer(ChestContainer.class)); }