void (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(); } }