Property (@NotNull final Iterable<Property> properties, @NotNull final PyTargetExpression element) { for (final Property property : properties) { if (element.equals(property.getDefinitionSite())) { return property; } } throw new IllegalArgumentException("No property found"); }