boolean (final @NotNull PsiFile psiFile) { if (!psiFile.isValid()) return false; VirtualFile file = psiFile.getVirtualFile(); ChangeListManager changeListManager = ChangeListManager.getInstance(myProject); List<LocalChangeList> changeLists = changeListManager.getChangeLists(file); return ContainerUtil.exists(changeLists, list -> list.isDefault()) && acceptTodoFilter(psiFile); }