boolean (PsiMember element) { if (element instanceof PsiMethod) { return !((PsiMethod)element).isConstructor() && ((PsiMethod)element).getBody() != null; } else if (element instanceof PsiField) { return true; } else if (element instanceof PsiClass) { return PsiTreeUtil.isAncestor(ExtractClassDialog.this.sourceClass, element, true); } return false; }