static boolean isRetina() {
    // Oracle JDK

    if (SystemInfo.isMac) {
      GraphicsEnvironment e
        = GraphicsEnvironment.getLocalGraphicsEnvironment();

      GraphicsDevice[] devices = e.getScreenDevices();

      //now get the configurations for each device
      for (GraphicsDevice device : devices) {
        if (isOracleMacRetinaDevice(device)) {
          return true;
        }
      }
    }

    return false;
  }
static boolean isRetina()