MockWolfTheProblemSolver (@NotNull Project project, @NotNull Disposable parentDisposable) { MockWolfTheProblemSolver wolfTheProblemSolver = (MockWolfTheProblemSolver)WolfTheProblemSolver.getInstance(project); WolfTheProblemSolverImpl theRealSolver = (WolfTheProblemSolverImpl)WolfTheProblemSolverImpl.createTestInstance(project); wolfTheProblemSolver.setDelegate(theRealSolver); Disposer.register(parentDisposable, theRealSolver); return wolfTheProblemSolver; }