public static @Nullable Outline getOutline(@NotNull JComponent component) {
    String outline = ObjectUtils.tryCast(component.getClientProperty("JComponent.outline"), String.class);
    return outline == null ? null : Outline.valueOf(outline);
  }
public static @Nullable Outline getOutline(@NotNull JComponent component)