Adding type parameter to GraphicsEnvironment