@Override @NotNull public VirtualFile[] getFiles(OrderRootType type) { if (OrderRootType.SOURCES.equals(type)) { return getRootModel().getSourceRoots(); } return VirtualFile.EMPTY_ARRAY; }
@Override @NotNull public String[] getUrls(OrderRootType type) { final ArrayList<String> result = new ArrayList<String>(); if (OrderRootType.SOURCES.equals(type)) { final ContentEntry[] content = getRootModel().getContentEntries(); for (ContentEntry contentEntry : content) { for (String url : contentEntry.getFolderUrls(ContentFolderType.ALL_SOURCE_ROOTS)) { result.add(url); } } return ArrayUtil.toStringArray(result); } return ArrayUtil.EMPTY_STRING_ARRAY; }