FilePath (@NotNull File file) { String path = file.getPath(); VirtualFile vf = LocalFileSystem.getInstance().findFileByPath(path); return createFilePath(path, vf != null ? vf.isDirectory() : file.isDirectory()); }