void (@Nullable Component view) { if (ScrollSettings.isNotSupportedYet(view)) return; if (view instanceof JComponent component) { Border border = component.getBorder(); if (border instanceof ViewBorder) return; // already set component.setBorder(border == null || border instanceof UIResource ? new ResourceViewBorder(border) : new ViewBorder(border)); } }