String (final RefEntity refEntity) { if (refEntity instanceof RefJavaElement && ((RefJavaElement)refEntity).isSyntheticJSP()) { return XmlStringUtil.escapeString(refEntity.getName()); } else if (refEntity instanceof RefMethod refMethod) { UMethod uMethod = refMethod.getUastElement(); if (uMethod != null) { return uMethod.getName(); } else { return refEntity.getName(); } } return null; }