Result (Expression @NotNull [] params, @NotNull ExpressionContext context) { final PsiElement element = context.getPsiElementAtStartOffset(); if (element != null) { final List<PsiNamedElement> components = getIterableElements(element); if (!components.isEmpty()) { if (components.get(0) instanceof PyNamedParameter namedParameter) { return new PsiElementResult(namedParameter.getNameIdentifier()); } return new PsiElementResult(components.get(0)); } } return null; }