private RefactoringStatus checkDeclaringType(IProgressMonitor pm) throws JavaModelException { IType declaringType= getDeclaringType();  if (declaringType.isInterface()) return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("PullUpRefactoring.no_interface_members"));  if (JavaModelUtil.getFullyQualifiedName(declaringType).equals("java.lang.Object")) return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("PullUpRefactoring.no_java.lang.Object"));  if (declaringType.isBinary()) return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("PullUpRefactoring.no_binary_types"));  if (declaringType.isReadOnly()) return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("PullUpRefactoring.no_read_only_types"));  return checkSuperclassesOfDeclaringClass(pm);
protected RefactoringStatus checkDeclaringType(IProgressMonitor monitor) throws JavaModelException { final RefactoringStatus status= super.checkDeclaringType(monitor); if (JavaModelUtil.getFullyQualifiedName(getDeclaringType()).equals("java.lang.Object")) status.merge(RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("PullUpRefactoring.no_java.lang.Object"))); status.merge(checkSuperclassesOfDeclaringClass(monitor)); return status;
	private RefactoringStatus checkDeclaringType(IProgressMonitor pm) throws JavaModelException {		IType declaringType= getDeclaringType();						if (declaringType.isInterface()) //for now			return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("PullUpRefactoring.no_interface_members")); //$NON-NLS-1$				if (JavaModelUtil.getFullyQualifiedName(declaringType).equals("java.lang.Object")) //$NON-NLS-1$			return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("PullUpRefactoring.no_java.lang.Object"));	 //$NON-NLS-1$			if (declaringType.isBinary())			return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("PullUpRefactoring.no_binary_types"));	 //$NON-NLS-1$			if (declaringType.isReadOnly())			return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.getString("PullUpRefactoring.no_read_only_types"));	 //$NON-NLS-1$				return checkSuperclassesOfDeclaringClass(pm);		}