VirtualFilePointer (@NotNull File file, VirtualFilePointerListener fileListener) { String url = VirtualFileManager.constructUrl(LocalFileSystem.PROTOCOL, FileUtil.toSystemIndependentName(file.getPath())); VirtualFile vFile = getVirtualFile(file); return vFile == null ? myVirtualFilePointerManager.create(url, disposable, fileListener) : myVirtualFilePointerManager.create(vFile, disposable, fileListener); }