Referencing static elements in methods