public VirtualFile findFileByPath(@NotNull String path, boolean isDirectory) {
    return getRemoteFileManager().getOrCreateFile(null, Urls.newFromIdea(VirtualFileManager.constructUrl(myProtocol, path)), path, isDirectory);
  }
public VirtualFile findFileByPath(@NotNull String path, boolean isDirectory)