Resharper optimalizations