I would like to point out that this method also works with an absolute URL (or full URL) to the list, as hinted in the "Remarks" section.
You don't have to extract a server-relative URL out of your absolute URL in order to use this method.
The following C# code will work:
SPList list = web.GetList("http://myserver/sites/SiteA/Lists/Projects/");