Boolean (@NotNull final PyTargetExpression input) { final PyClass aClass = input.getContainingClass(); final String name = input.getName(); if (name == null) { return null; //Field with out of name can't override something } assert aClass != null : "Target expression declared outside of class:" + input; return classHasField(aClass, name) ? true : null; }