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