public static @Nullable ComponentPanel getComponentPanel(@NotNull JComponent component) {
    return (ComponentPanel)component.getClientProperty(DECORATED_PANEL_PROPERTY);
  }
public static @Nullable ComponentPanel getComponentPanel(@NotNull JComponent component)