public void addListener(@NotNull PerspectiveTypeListener listener){
  listeners.add(listener);
}

public void addListener ( @ NotNull PerspectiveTypeListener listener ) { listeners . add ( listener ) ; }
adds listeners which will react on changing of perspective type .
