void (@NotNull String testingAbbreviation, @NotNull Disposable parentDisposable) { ourTestingAbbreviation = testingAbbreviation; Disposer.register(parentDisposable, new Disposable() { @Override public void dispose() { //noinspection AssignmentToStaticFieldFromInstanceMethod ourTestingAbbreviation = null; } }); }