void (@NotNull Consumer<? super @NotNull PsiFile> consumer) { CurrentFileTodosTreeStructure treeStructure = (CurrentFileTodosTreeStructure)getTodoTreeStructure(); PsiFile psiFile = treeStructure.getFile(); if (psiFile != null && treeStructure.accept(psiFile)) { consumer.accept(psiFile); } }