private static boolean hasReferences(@NotNull PsiExpression expression) {
        return expression instanceof PsiReferenceExpression || 
               PsiTreeUtil.getChildOfType(expression, PsiReferenceExpression.class) != null;
      }
private static boolean hasReferences(@NotNull PsiExpression expression)