FileCopyingHandler (@NotNull File file, @NotNull JpsPackagingElement contextElement, @NotNull ArtifactCompilerInstructionCreator instructionCreator) { File targetDirectory = instructionCreator.getTargetDirectory(); if (targetDirectory != null) { for (ArtifactRootCopyingHandlerProvider provider : myCopyingHandlerProviders) { FileCopyingHandler handler = provider.createCustomHandler(myBuildTarget.getArtifact(), file, targetDirectory, contextElement, myModel, myBuildDataPaths); if (handler != null) { return handler; } } } return FilterCopyHandler.DEFAULT; }