Module (@NotNull DataContext dataContext) { InspectionResultsView inspectionView = dataContext.getData(InspectionResultsView.DATA_KEY); if (inspectionView != null) { AnalysisScope scope = inspectionView.getScope(); if (scope.getScopeType() == AnalysisScope.MODULE && scope.isValid()) { return scope.getModule(); } } return dataContext.getData(PlatformCoreDataKeys.MODULE); }