private static @NlsSafe String buildNameFor(final PyElement element) {
    if (element instanceof PyFunction) {
      final TypeEvalContext context = TypeEvalContext.userInitiated(element.getProject(), element.getContainingFile());
      final List<PyCallableParameter> parameters = ((PyFunction)element).getParameters(context);

      final StringBuilder result = new StringBuilder();

      result.append(element.getName()).append('(');
      StringUtil.join(parameters, parameter -> parameter.getPresentableText(true, context), ", ", result);
      result.append(')');

      return result.toString();
    }
    return element.getName();
  }
private static @NlsSafe String buildNameFor(final PyElement element)