reduce inference for IntelliJ