public static ArrayList<GCPoweredColor> convertShortenedColorStringToColorList( String shortenedColorString) { ArrayList<GCPoweredColor> colorList = new ArrayList<>(); List<String> stringParts = getParts(shortenedColorString, 3); for (String colorAbbrev : stringParts) { try { String colorString = colorAbbrev.substring(0, 2); String powerString = colorAbbrev.substring(2, 3); GCColor color = GCColorUtil.getColorUsingAbbrev(colorString); GCPowerLevel powerLevel = GCPowerLevelUtil.getPowerLevelUsingAbbrev(powerString); colorList.add(new GCPoweredColor(color, powerLevel.getTitle())); } catch (Exception e) { return null; } } return colorList; }