void (@NotNull PsiMethodCallExpression call) { PsiMethodCallExpression qualifierCall = MethodCallUtils.getQualifierMethodCall(call); if (!COLLECTION_ITERATOR.matches(qualifierCall)) return; PsiExpression collection = qualifierCall.getMethodExpression().getQualifierExpression(); if (collection == null || collection instanceof PsiThisExpression) return; if (!InheritanceUtil.isInheritor(collection.getType(), "java.util.SequencedCollection")) return; String name = "getFirst"; report(call, name); }