public static boolean isDeclaredInInterface(IMethod method, IProgressMonitor pm) throws JavaModelException {
private static IMethod isDeclaredInInterface(IMethod method, IProgressMonitor pm) throws JavaModelException {
	public static boolean isDeclaredInInterface(IMethod method, IProgressMonitor pm) throws JavaModelException {		try{				pm.beginTask("", 4);			ITypeHierarchy hier= method.getDeclaringType().newTypeHierarchy(new SubProgressMonitor(pm, 1));			IType[] classes= hier.getAllClasses();			IProgressMonitor subPm= new SubProgressMonitor(pm, 3);			subPm.beginTask("", classes.length);			for (int i= 0; i < classes.length; i++) {				ITypeHierarchy superTypes= classes[i].newSupertypeHierarchy(new SubProgressMonitor(subPm, 1));				IType[] superinterfaces= superTypes.getAllSuperInterfaces(classes[i]);				for (int j= 0; j < superinterfaces.length; j++) {					if (Checks.findMethod(method, superinterfaces[j]) != null)						return true;				}				subPm.worked(1);			}			return false;		} finally{			pm.done();		}	}