private static VisibleTreeState getExpandedNodes(InspectionProfileImpl profile) {
    if (profile.isProjectLevel()) {
      return ProjectInspectionProfilesVisibleTreeState.getInstance(((ProjectBasedInspectionProfileManager)profile.getProfileManager()).getProject()).getVisibleTreeState(profile);
    }
    return AppInspectionProfilesVisibleTreeState.getInstance().getVisibleTreeState(profile);
  }
private static VisibleTreeState getExpandedNodes(InspectionProfileImpl profile)