void (PsiElement[] elements, PsiDirectory defaultTargetDirectory) { if (elements.length == 0) return; for(CopyHandlerDelegate delegate: CopyHandlerDelegate.EP_NAME.getExtensionList()) { if (delegate.canCopy(elements)) { delegate.doCopy(elements, defaultTargetDirectory); break; } } }