void (@NotNull PsiFile node) { if (node instanceof PyFile) { List<PyElement> testClasses = PythonDocTestUtil.getDocTestCasesFromFile((PyFile)node); if (!testClasses.isEmpty()) hasTests = true; } else { final String text = node.getText(); if (PythonDocTestUtil.hasExample(text)) hasTests = true; } }