@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(); }