{"comment":{"url":"https://api.github.com/repos/avesloguzova/intellij-erlang/comments/12270002","html_url":"https://github.com/avesloguzova/intellij-erlang/commit/b7eb7b021f67fb234e6716720145ffcd9a8c04a7#commitcomment-12270002","id":12270002,"user":{"login":"avesloguzova","id":5417013,"avatar_url":"https://avatars.githubusercontent.com/u/5417013?v=3","gravatar_id":"","url":"https://api.github.com/users/avesloguzova","html_url":"https://github.com/avesloguzova","followers_url":"https://api.github.com/users/avesloguzova/followers","following_url":"https://api.github.com/users/avesloguzova/following{/other_user}","gists_url":"https://api.github.com/users/avesloguzova/gists{/gist_id}","starred_url":"https://api.github.com/users/avesloguzova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avesloguzova/subscriptions","organizations_url":"https://api.github.com/users/avesloguzova/orgs","repos_url":"https://api.github.com/users/avesloguzova/repos","events_url":"https://api.github.com/users/avesloguzova/events{/privacy}","received_events_url":"https://api.github.com/users/avesloguzova/received_events","type":"User","site_admin":false},"position":188,"line":188,"path":"tests/org/intellij/erlang/compilation/ErlangCompilationTestCase.java","commit_id":"b7eb7b021f67fb234e6716720145ffcd9a8c04a7","created_at":"2015-07-21T08:50:21Z","updated_at":"2015-07-21T08:50:21Z","body":"I don't understand how to apply ContainerUtil.map2Array, because `getChildrenNames(root)` returns `List<String>`.\r\nMay be this code be better:\r\n`List<String> result = ContainerUtil.concat(ContainerUtil.mapNotNull(sourceRoots, new Function<VirtualFile, List<String>>() {`\r\n`      @Override`\r\n`      public List<String> fun(VirtualFile root) {`\r\n`        return getChildrenNames(root);`\r\n`      }`\r\n`    }));`\r\n`    return ArrayUtil.toStringArray(result);`"}}