ContentEntry (VirtualFile virtualFile, PyContentEntriesEditor editor) { for (ContentEntry contentEntry : editor.getContentEntries()) { final VirtualFile file = contentEntry.getFile(); if (file != null && VfsUtilCore.isAncestor(file, virtualFile, false)) { return contentEntry; } } return null; }