AbstractExtractDialog (final MyExtractMethodProcessor processor) { return new ExtractMethodObjectDialog(myProject, processor.getTargetClass(), processor.getInputVariables(), processor.getReturnType(), processor.getTypeParameterList(), processor.getThrownExceptions(), processor.isStatic(), processor.isCanBeStatic(), processor.getElements(), myMultipleExitPoints){ @Override protected boolean isUsedAfter(PsiVariable variable) { return ArrayUtil.find(processor.getOutputVariables(), variable) != -1; } }; }