Collection<String> () { final String s = myIgnoredVariables.getText(); final List<String> ignored = new ArrayList<>(); final StringTokenizer st = new StringTokenizer(s, ";"); while (st.hasMoreElements()) { ignored.add(st.nextElement().trim()); } return ignored; }