boolean (@NotNull VirtualFile file) { if (isIgnoredByBuild(file)) { return true; } final FileTypeManager fileTypeManager = FileTypeManager.getInstance(); VirtualFile current = file.getParent(); while (current != null) { if (fileTypeManager.isFileIgnored(current)) { return true; } current = current.getParent(); } return false; }