void (Disposable parent) { ourForceStartMatching = true; Disposer.register(parent, new Disposable() { @Override public void dispose() { //noinspection AssignmentToStaticFieldFromInstanceMethod ourForceStartMatching = false; } }); }