PyElement (final String className, final String memberName) { final PyClass aClass = findClass(className); final PyTargetExpression attribute = aClass.findClassAttribute(memberName, false, null); if (attribute != null) { return attribute; } return aClass.findInstanceAttribute(memberName, false); }