boolean (@NotNull String url) { final VirtualFile file = VirtualFileManager.getInstance().findFileByUrl(url); if (file != null) { for (FileIndex index : getFileIndices()) { if (index.isInSourceContent(file)) { return true; } } } else { // the file might be deleted for (VirtualFile root : ProjectRootManager.getInstance(myProject).getContentSourceRoots()) { final String rootUrl = root.getUrl(); if (FileUtil.startsWith(url, rootUrl.endsWith("/")? rootUrl : rootUrl + "/")) { return true; } } } return false; //return !FileUtil.startsWith(url, myTempDirUrl); }