boolean (PsiElement member, Set<? extends PsiMember> movedMembers, PsiClass superclass, PsiClass subclass) { for (PsiReference ref : ReferencesSearch.search(member, new LocalSearchScope(subclass), false)) { PsiElement element = ref.getElement(); if (!RefactoringHierarchyUtil.willBeInTargetClass(element, movedMembers, superclass, false)) { return true; } } return false; }