if (element.getElementType() == IJavaElement.TYPE && ((IType)element).isLocal())
if ((element instanceof IType) && ((IType)element).isLocal())
	public static boolean isAvailable(IResource[] resources, IJavaElement[] javaElements, CodeGenerationSettings settings) throws JavaModelException{		if (javaElements != null) {			for (int i= 0; i < javaElements.length; i++) {				IJavaElement element= javaElements[i];				if (element.getElementType() == IJavaElement.TYPE && ((IType)element).isLocal())					return false;			}		}		return isAvailable(ReorgPolicyFactory.createMovePolicy(resources, javaElements, settings));	}