boolean (Object element) { if (myRecentData == null) return false; if (myRecentData.isCopied) return false; PsiElement[] elements = myRecentData.getElements(); if (elements == null) return false; return ArrayUtil.contains(element, elements); }