List<String> () { final PyClassStub stub = getStub(); if (stub != null) { return stub.getSlots(); } final PyTargetExpression slots = ContainerUtil.find(getClassAttributes(), target -> PyNames.SLOTS.equals(target.getName())); if (slots != null) { final PyExpression value = slots.findAssignedValue(); return value instanceof PyStringLiteralExpression ? Collections.singletonList(((PyStringLiteralExpression)value).getStringValue()) : PyUtil.strListValue(value); } return null; }