void (@NotNull final Project project, @NotNull final PyClass classUnderRefactoring, @NotNull final PyMemberInfoStorage infoStorage, @NotNull final Editor editor) { //TODO: Move to vp (presenter) as well final PyPullUpNothingToRefactorMessage nothingToRefactor = new PyPullUpNothingToRefactorMessage(project, editor, classUnderRefactoring); if (PyAncestorsUtils.getAncestorsUnderUserControl(classUnderRefactoring).isEmpty()) { nothingToRefactor.showNothingToRefactor(); return; } ViewPresenterUtils .linkViewWithPresenterAndLaunch(PyPullUpPresenter.class, PyPullUpView.class, new Creator<>() { @NotNull @Override public PyPullUpPresenter createPresenter(@NotNull final PyPullUpView view) { return new PyPullUpPresenterImpl(view, infoStorage, classUnderRefactoring); } @NotNull @Override public PyPullUpView createView(@NotNull final PyPullUpPresenter presenter) { return new PyPullUpViewSwingImpl(project, presenter, classUnderRefactoring, nothingToRefactor); } } ); }