protected static bool IsVisible(ProjectEntry accessor, ProjectEntry declaringScope, ProjectEntry assigningScope) { if (accessor != null && accessor.IsVisible(assigningScope)) { return(true); } if (declaringScope != null && declaringScope.IsVisible(assigningScope)) { return(true); } return(false); }