boolean (final @NotNull GroupItem group) { final ComponentItem[] items = group.getItems(); for (int i = items.length - 1; i >= 0; i--) { if (!items[i].isRemovable()) { return false; } } return true; }