boolean () { if (isHeadlessEnvironment()) { return true; } if (isDisposed()) { return false; } Window activeWindow = KeyboardFocusManager.getCurrentKeyboardFocusManager().getActiveWindow(); if (activeWindow != null) { ApplicationActivationStateManager.INSTANCE.updateState(this, activeWindow); } return ApplicationActivationStateManager.INSTANCE.isActive(); }