UParameter () { // kotlin receiver parameter (psi <-> uast conversion isn't symmetric) RefMethod method = ObjectUtils.tryCast(getOwner(), RefMethod.class); if (method == null) return null; UMethod uMethod = method.getUastElement(); if (uMethod == null) return null; List<UParameter> parameters = uMethod.getUastParameters(); if (parameters.size() <= getIndex()) return null; return parameters.get(getIndex()); }