How to achieve this in an extension?

This is my code

Calendar instant = (Calendar) GetProperty(date,"Instant");
String instants = String.valueOf(Dates.Year(instant));
SetProperty(title,"Text",String.join(Dates.MonthName(instant) , " " , (instants)));

It gets compiled but it shows me error when i use the extension

This is what i want extension should set text to :point_down:

blocks (52)

This is the error i face :point_down: