Object (Object o) { //noinspection rawtypes if (o instanceof List list) { //noinspection unchecked list.replaceAll(RefParameterImpl::convertUastToPointers); } else if (o instanceof UField field) { PsiElement psi = field.getSourcePsi(); return psi == null ? VALUE_IS_NOT_CONST : SmartPointerManager.getInstance(psi.getProject()).createSmartPsiElementPointer(psi); } return o; }