public static boolean isPushDownAvailable(final IMember[] members) throws JavaModelException { if (members != null && members.length != 0) { final IType type= getTopLevelType(members); if (type != null && RefactoringAvailabilityTester.getPushDownMembers(type).length != 0) return true; if (type != null && JdtFlags.isEnum(type))
public static boolean isPushDownAvailable(final IMember member) throws JavaModelException { if (!member.exists()) return false; final int type= member.getElementType(); if (type != IJavaElement.METHOD && type != IJavaElement.FIELD) return false; if (JdtFlags.isEnum(member)) return false; if (!Checks.isAvailable(member)) return false; if (JdtFlags.isStatic(member)) return false; if (type == IJavaElement.METHOD) { final IMethod method= (IMethod) member; if (method.isConstructor())
	public static boolean isPushDownAvailable(final IMember[] members) throws JavaModelException {		if (members != null && members.length != 0) {			final IType type= getTopLevelType(members);			if (type != null && RefactoringAvailabilityTester.getPushDownMembers(type).length != 0)				return true;			if (type != null && JdtFlags.isEnum(type))				return false;			for (int index= 0; index < members.length; index++) {				if (!isPushDownAvailable(members[index]))					return false;			}			return isCommonDeclaringType(members);		}		return false;	}