Made static variables in class methods show the method visibility.