Journalists and writers in a war

At the beginning of the 20th century, Ernest Hemingway became one of the first writers who came to a country where a war was going on to later write his texts about it. How has the role of writers and journalists changed during the war and what choices did Ukrainian writers make after russia started a war against Ukraine in 2014?