void (PsiMethodCallExpression call) { PsiExpression qualifier = call.getMethodExpression().getQualifierExpression(); if (qualifier == null) return; PsiType qualifierType = qualifier.getType(); if (qualifierType == null) return; String qualifierTypeText = qualifierType.getCanonicalText(); CommentTracker tracker = new CommentTracker(); String qualifierText = tracker.text(qualifier); String replacement = findStaticReplacement(call, qualifierText, qualifierTypeText); if (replacement == null) return; tracker.replaceAndRestoreComments(call, replacement); }