Stream<BaseCommitMessageInspection> (@NotNull Project project) { return CommitMessageInspectionProfile.getInstance(project).getAllEnabledInspectionTools(project).stream() .map(Tools::getTool) .map(InspectionToolWrapper::getTool) .filter(BaseCommitMessageInspection.class::isInstance) .map(BaseCommitMessageInspection.class::cast); }