private static boolean isNotEmpty(@Nullable PsiReferenceList referenceList){
    return referenceList != null && referenceList.getReferenceElements().length > 0;
  }
private static boolean isNotEmpty(@Nullable PsiReferenceList referenceList)