patterns.add(getWholeIvyPattern()); patterns.add(getWholeArtPattern());
if (getWholeIvyPattern() != null) { patterns.add(getWholeIvyPattern()); } if (getWholeArtPattern() != null) { patterns.add(getWholeArtPattern()); }
    private void updateWholeIvyPattern() {        if (isM2compatible()) {            List patterns = new ArrayList();            patterns.add(getWholeIvyPattern());            patterns.add(getWholeArtPattern());            setIvyPatterns(patterns);        } else {            setIvyPatterns(Collections.singletonList(getWholeIvyPattern()));        }    }