void (@NotNull final ComponentItem item) { final IntrospectedProperty[] properties = getPalette().getIntrospectedProperties(this); for (final IntrospectedProperty property : properties) { final Object initialValue = item.getInitialValue(property); if (initialValue != null) { try { //noinspection unchecked property.setValue(this, initialValue); } catch (Exception e) { throw new RuntimeException(e); } } } myConstraints.restore(item.getDefaultConstraints()); }