String (Project project, Document document, int offset, SuggestedNameInfo suggestedNameInfo) { String initialVariableName = suggestedNameInfo.names[0]; document.insertString(offset, initialVariableName); PsiDocumentManager.getInstance(project).commitDocument(document); return initialVariableName; }