public static List<String> extractStereotypes(CharSequence text) {
        List<String> stereotypes = new ArrayList<String>();
        Matcher matcher = Pattern.compile("(<<[^>]+>>)").matcher(text);
        while(matcher.find()) {
            stereotypes.add(matcher.group(1));
        }
        return stereotypes;
    }