void (PsiElement element) { PsiElement[] elements = new PsiElement[]{element}; for(CopyHandlerDelegate delegate: CopyHandlerDelegate.EP_NAME.getExtensionList()) { if (delegate.canCopy(elements)) { if (delegate instanceof CopyHandlerDelegateBase && ((CopyHandlerDelegateBase)delegate).forbidToClone(elements, false)) { return; } delegate.doClone(element); break; } } }