@NotNull private static VirtualFile[] filterByReadOnliness(@NotNull VirtualFile[] files) { List<VirtualFile> result = new ArrayList<VirtualFile>(); for (VirtualFile file : files) { if (file.isInLocalFileSystem()) { result.add(file); } } return VfsUtilCore.toVirtualFileArray(result); }
@NotNull public static String getReadableUrl(@NotNull final VirtualFile file) { String url = null; if (file.isInLocalFileSystem()) { url = file.getPresentableUrl(); } if (url == null) { url = file.getUrl(); } return url; }
@NotNull public static String getReadableUrl(@NotNull final VirtualFile file) { return file.isInLocalFileSystem() ? file.getPresentableUrl() : file.getUrl(); }