List<RatedResolveResult> () { if (myElement instanceof PyBinaryExpression) { final PyBinaryExpression expr = (PyBinaryExpression)myElement; final String name = expr.getReferencedName(); if (PyNames.CONTAINS.equals(name)) { return resolveMember(expr.getRightExpression(), name); } else { return resolveLeftAndRightOperators(expr, name); } } else if (myElement instanceof PySubscriptionExpression) { final PySubscriptionExpression expr = (PySubscriptionExpression)myElement; return resolveMember(expr.getOperand(), expr.getReferencedName()); } else if (myElement instanceof PyPrefixExpression) { final PyPrefixExpression expr = (PyPrefixExpression)myElement; return resolveMember(expr.getOperand(), expr.getReferencedName()); } return Collections.emptyList(); }