void (@NotNull Map<PsiElement, String> renames, @NotNull String newName, @NotNull Maybe<PyCallable> accessor) { final PyCallable callable = accessor.valueOrNull(); if (callable instanceof PyFunction) { renames.put(callable, newName); } }