void (final Project project, Editor editor, final GrVariable local) { final PsiReference invocationReference = editor != null ? TargetElementUtil.findReference(editor) : null; final InlineLocalVarSettings localVarSettings = createSettings(local, editor, invocationReference != null); if (localVarSettings == null) return; if (!CommonRefactoringUtil.checkReadOnlyStatus(project, local)) return; final GroovyInlineLocalProcessor processor = new GroovyInlineLocalProcessor(project, localVarSettings, local); processor.setPrepareSuccessfulSwingThreadCallback(() -> { //do nothing }); processor.run(); }