private static boolean isFocusedImpl(@NotNull JComponent component) {
    return component.hasFocus() || ClientProperty.isTrue(component, ALWAYS_PAINT_SELECTION_AS_FOCUSED);
  }
private static boolean isFocusedImpl(@NotNull JComponent component)