QuickEditHandler (Project project, PsiFile injectedFile, Editor editor, PsiFile origFile) { QuickEditHandler handler = getExistingHandler(injectedFile); if (handler != null && handler.isValid()) { return handler; } handler = new QuickEditHandler(project, injectedFile, origFile, editor, this); Disposer.register(project, handler); if (ApplicationManager.getApplication().isUnitTestMode()) { // todo remove and hide QUICK_EDIT_HANDLER injectedFile.putUserData(QUICK_EDIT_HANDLER, handler); } return handler; }