private Insets getInsets(Map gapMap, String uid, String style, int sizeStyle) { if (uid == null) { uid = "default"; } ComponentInsets componentInsets = (ComponentInsets) gapMap.get(uid); if (componentInsets == null) { componentInsets = (ComponentInsets) gapMap.get("default"); if (componentInsets == null) { return EMPTY_INSETS; } } else if (style != null) { ComponentInsets subInsets = componentInsets.getSubinsets(style); if (subInsets != null) { componentInsets = subInsets; } } return componentInsets.getInsets(sizeStyle); }