@ApiStatus.Experimental
  public static boolean hasFocus(@NotNull Component component) {
    return GraphicsEnvironment.isHeadless() || kindaHasFocus(component) || component.hasFocus();
  }
@ApiStatus.Experimental
  public static boolean hasFocus(@NotNull Component component)