List<String> (String string) { if (mySourceNames == null) { final List<String> paths = sourcePaths(string); mySourceNames = new ArrayList<>(paths.size()); for (String path : paths) { final int i = Math.max(path.lastIndexOf('/'), path.lastIndexOf('\\')); mySourceNames.add(path.substring(i + 1)); } } return mySourceNames; }