Why we can't declare non static members in static method