boolean (PsiElement[] elements, @Nullable Ref<? super @NlsActions.ActionText String> actionName) { if (elements.length > 0) { for(CopyHandlerDelegate delegate: CopyHandlerDelegate.EP_NAME.getExtensionList()) { if (delegate instanceof CopyHandlerDelegateBase ? ((CopyHandlerDelegateBase)delegate).canCopy(elements, true) : delegate.canCopy(elements)) { if (actionName != null) { actionName.set(delegate.getActionName(elements)); } return true; } } } return false; }