InspectionToolWrapper (final Project project, final PsiFile file, final String suppressId) { if (suppressId == null) return null; final InspectionProjectProfileManager projectProfileManager = InspectionProjectProfileManager.getInstance(project); final InspectionProfileImpl inspectionProfile = projectProfileManager.getCurrentProfile(); return inspectionProfile.getToolById(suppressId, file); }