public List<String> getAllExcludes() { List<String> result = new ArrayList<String>(); if (parentSpec != null) { result.addAll(parentSpec.getAllExcludes()); } result.addAll(getExcludes()); return result; }