Object (Object o) { //noinspection rawtypes if (o instanceof List list) { //noinspection unchecked list.replaceAll(RefParameterImpl::convertPointersToUast); } else if (o instanceof SmartPsiElementPointer<?> pointer) { return UastContextKt.toUElement(pointer.getElement()); } return o; }