You need to create a generic method, same way you did in the class declaration using
where keyword with
T in the following syntax:
private VisibleObjectController<t> controller;
public VisibleObjectController<t> getController<t>() where t : VisibleObject {
return controller;
}