void (final String newName) { configureByFile(); PsiElement element = getTargetElement(); assertInPlaceRenameAllowedFor(element); CommandProcessor.getInstance().executeCommand(getProject(), () -> { CodeInsightTestUtil.doInlineRename(new VariableInplaceRenameHandler(), newName, getEditor(), element); }, null, null); checkResultByFile(); }