Object (@NotNull String dataId) { if (CommonDataKeys.PSI_ELEMENT.is(dataId)) { return getMethod(); } else if (UsageView.USAGE_INFO_KEY.is(dataId)) { PsiMethod method = getMethod(); return method == null ? null : new UsageInfo(method); } return null; }