List<Color> (@Nullable EditorColorsScheme scheme) { if (scheme == null) scheme = EditorColorsManager.getInstance().getGlobalScheme(); List<Color> colors = getOrderedColors(scheme); List<Color> authorColors = new ArrayList<>(); for (int i = 0; i < SHUFFLE_STEP; i++) { for (int k = 0; k <= colors.size() / SHUFFLE_STEP; k++) { int index = k * SHUFFLE_STEP + i; if (index < colors.size()) authorColors.add(colors.get(index)); } } return authorColors; }