private @Nullable Project getDefaultProject() {
    return myProfileManager instanceof ProjectBasedInspectionProfileManager pm ? pm.getProject() : null;
  }
private @Nullable Project getDefaultProject()