void () { myFixture.addClass(""" package com.jetbrains; import java.util.Optional; import java.util.stream.Stream; class A { void foo() { } }"""); PropertyChecker.customized() .checkScenarios(() -> this::doTestCompilabilityAfterConversion); }