Filter out non-static class members when correcting non-member-references.