private static void saveChangesToProfile(JList<InspectionPattern> list) {
    final InspectionProfileModifiableModel profile = getInspectionProfile(list);
    if (profile != null) profile.setModified(true);
  }
private static void saveChangesToProfile(JList<InspectionPattern> list)