boolean (final SelectInContext context) { CoverageDataManager manager = CoverageDataManager.getInstance(myProject); for (CoverageSuitesBundle suitesBundle : manager.activeSuites()) { final CoverageView coverageView = CoverageViewManager.getInstance(myProject).getToolwindow(suitesBundle); if (coverageView != null) { final VirtualFile file = context.getVirtualFile(); return !file.isDirectory() && coverageView.canSelect(file); } } return false; }