import java.util.*; import java.io.File; class Foo { public Collection> getDependencies(LayoutElementBuilderService builder, JpsPackagingElement element, TargetOutputIndex outputIndex) { return builder.getDependencies(element, outputIndex); } } class BuildTarget {} interface TargetOutputIndex { Collection> getTargetsByOutputFile(File file); } class BuildRootDescriptor {} class LayoutElementBuilderService { public Collection> getDependencies(E element, TargetOutputIndex outputIndex) { return Collections.emptyList(); } } class JpsPackagingElement {}