String (@NotNull GrCallExpression call, @Nullable GrMethod method, @NotNull final Project project, @NotNull GrExpression qualifier) { String[] possibleNames = GroovyNameSuggestionUtil.suggestVariableNames(qualifier, new NameValidator() { @Override public String validateName(String name, boolean increaseNumber) { return name; } @Override public Project getProject() { return project; } }); String qualName = possibleNames[0]; qualName = InlineMethodConflictSolver.suggestNewName(qualName, method, call); return qualName; }