boolean (VirtualFile virtualFile) { for (final ExcludeEntryDescription entryDescription : getExcludeEntryDescriptions()) { VirtualFile descriptionFile = entryDescription.getVirtualFile(); if (descriptionFile == null) { continue; } if (entryDescription.isFile()) { if (descriptionFile.equals(virtualFile)) { return true; } } else if (entryDescription.isIncludeSubdirectories()) { if (VfsUtilCore.isAncestor(descriptionFile, virtualFile, false)) { return true; } } else { if (virtualFile.isDirectory()) { continue; } if (descriptionFile.equals(virtualFile.getParent())) { return true; } } } return false; }