void (JpsFileCopyPackagingElement element, ArtifactCompilerInstructionCreator instructionCreator, ArtifactInstructionsBuilderContext builderContext) { final String filePath = element.getFilePath(); if (filePath != null) { final File file = new File(filePath); final String fileName = element.getRenamedOutputFileName(); String outputFileName = fileName != null ? fileName : file.getName(); instructionCreator.addFileCopyInstruction(file, outputFileName, instructionCreator.getInstructionsBuilder().createCopyingHandler(file, element, instructionCreator)); } }