Can you get rid of these ifs and make this snippet of code more object oriented?

TechnicalSenior Backend DeveloperMiddle Backend Java Developer