boolean () { if (myVDirectory != null) { final ProjectFileIndex fileIndex = ProjectRootManager.getInstance(myProject).getFileIndex(); final VirtualFile contentRoot = fileIndex.getContentRootForFile(myVDirectory); final VirtualFile sourceRoot = fileIndex.getSourceRootForFile(myVDirectory); if (myVDirectory.equals(contentRoot) || myVDirectory.equals(sourceRoot)) { return true; } } return false; }