private static void removeTypeArguments(PsiJavaCodeReferenceElement ref) {
        if (ref == null || !(ref.getQualifier() instanceof PsiJavaCodeReferenceElement qualifier)) {
          return;
        }
        removeTypeArguments(qualifier);
        PsiReferenceParameterList parameterList = qualifier.getParameterList();
        if (parameterList != null && parameterList.getFirstChild() != null) {
          parameterList.delete();
        }
      }
private static void removeTypeArguments(PsiJavaCodeReferenceElement ref)