if (MethodChecks.isVirtual(fMethod)){ if (MethodChecks.overridesAnotherMethod(fMethod, new SubProgressMonitor(pm, 1))) result.addError("Method '" + JavaElementUtil.createMethodSignature(fMethod)+"' overrides another method. Perform this action in the most abstract type that declares it."); if (MethodChecks.isDeclaredInInterface(fMethod, new SubProgressMonitor(pm, 1))) result.addError("Method '" + JavaElementUtil.createMethodSignature(fMethod)+"' is declared in an interface. Perform this action there."); }  if (fMethod.getDeclaringType().isInterface()){ if (MethodChecks.overridesAnotherMethod(fMethod, new SubProgressMonitor(pm, 1))) result.addError("Method '" + JavaElementUtil.createMethodSignature(fMethod)+"' overrides another method. Perform this action in the most abstract type that declares it."); }
	public RefactoringStatus checkActivation(IProgressMonitor pm) throws JavaModelException {		IMethod orig= (IMethod)WorkingCopyUtil.getOriginal(fMethod);		if (orig == null || ! orig.exists())			return RefactoringStatus.createFatalErrorStatus("The selected method has been deleted from '" + fMethod.getCompilationUnit().getElementName()+ "'.");		fMethod= orig;						RefactoringStatus result= Checks.checkIfCuBroken(fMethod);		if (result.hasFatalError())			return result;		//XX					if (MethodChecks.isVirtual(fMethod)){			if (MethodChecks.overridesAnotherMethod(fMethod, new SubProgressMonitor(pm, 1)))				result.addError("Method '" + JavaElementUtil.createMethodSignature(fMethod)+"' overrides another method. Perform this action in the most abstract type that declares it.");			if (MethodChecks.isDeclaredInInterface(fMethod, new SubProgressMonitor(pm, 1)))					result.addError("Method '" + JavaElementUtil.createMethodSignature(fMethod)+"' is declared in an interface. Perform this action there.");		}				if (fMethod.getDeclaringType().isInterface()){			if (MethodChecks.overridesAnotherMethod(fMethod, new SubProgressMonitor(pm, 1)))				result.addError("Method '" + JavaElementUtil.createMethodSignature(fMethod)+"' overrides another method. Perform this action in the most abstract type that declares it.");		}						return result;	}