String (final Object element) { if (element instanceof PsiMethod) { final PsiClass parent = ((PsiMethod)element).getContainingClass(); if (parent != null) { return ClassPresentationUtil.getNameForClass(parent, true); } } return null; }