boolean (PsiElement element) { return element instanceof PsiClass || element instanceof PsiMethod || element instanceof PsiRecordComponent || element instanceof PsiField || element instanceof PsiParameter || element instanceof PsiLocalVariable || element instanceof PsiPackage; }