boolean (@NotNull final PsiFile psiFile) { if (!(psiFile instanceof PsiClassOwner)) { return false; } // let's show coverage only for module files final Module module = ReadAction.compute(() -> ModuleUtilCore.findModuleForPsiElement(psiFile)); return module != null; }