boolean () { final PyParameterList parameters = getStubOrPsiParentOfType(PyParameterList.class); if (parameters == null) { return false; } boolean varargSeen = false; for (PyParameter param : parameters.getParameters()) { if (param == this) { break; } final PyNamedParameter named = param.getAsNamed(); if ((named != null && named.isPositionalContainer()) || param instanceof PySingleStarParameter) { varargSeen = true; break; } } return varargSeen; }