boolean (final PyMemberInfo<PyElement> member) { final PyClass currentSuperClass = myView.getSelectedParent(); if (member.getMember() instanceof PyClass memberClass) { //TODO: Delegate to Memebers Managers if (memberClass.isSubclass(currentSuperClass, null) || currentSuperClass.isSubclass(memberClass, null)) { return false; //Class is already parent of superclass } } return true; }