RefElement (final RefManager manager, final String fqName) { final int idx = fqName.lastIndexOf(' '); if (idx > 0) { final String method = fqName.substring(0, idx); final RefJavaElement refMethod = RefMethodImpl.methodFromExternalName(manager, method); if (refMethod != null) { final UMethod element = ObjectUtils.tryCast(refMethod.getUastElement(), UMethod.class); if (element == null) return null; final List<UParameter> parameters = element.getUastParameters(); int paramIdx = 0; final String paramName = fqName.substring(idx + 1); for (UParameter parameter : parameters) { final String name = parameter.getName(); if (name != null && name.equals(paramName)) { return manager.getExtension(RefJavaManager.MANAGER).getParameterReference(parameter, paramIdx, refMethod); } paramIdx++; } } } return null; }