@SuppressWarnings("unchecked")
public void onInputChanged(PyEdit edit, IEditorInput oldInput, IEditorInput input, IProgressMonitor monitor) {
boolean cythonFile = edit.isCythonFile();
if (cythonFile != currentIsCythonFile) {
currentIsCythonFile = cythonFile;
CallbackWithListeners callbackWithListeners = this.ref.get();
if (callbackWithListeners != null) {
callbackWithListeners.call(null);
} else {
edit.removePyeditListener(this);
}
}
}